Skip to main content

For an introduction into setting up RESTful hal+json refer to the set-up documentation.

POST command

Following on from the GET command, to post a node to the site (currently staging) is quite quick.  To do so, complete the following:

Request: {domain}/entity/node

Content-Type: application/hal+json

Accept: application/hal+json

Body: 

{"_links":{
  "type":{"href":"{domain}/rest/type/node/{type}"}},
  "title":[{"value": "Add title"}],
  "body":[{"value": "<p>Add your content here...</p>\r\n"}]
}

 

Related articles