Updating a resource

To update an individual entity, the request would look like PATCH {{entity-type}}/{{id}}.json. For example, PATCH pages/42.json; pages is the entity type, 42 is the ID of the page.

See Request structure for an example request. You can send the full entity in the request as that document implies but we actually recommended to only send what needs to change. Any omitted property will be treated as if they’re not changing. For example, if you wanted to update the title of the page;

PATCH pages/42.json

{
	"page": {
		"title": "New one",
	}
}

That’s it.

Response

PATCH requests will return a 200 OK with the full updated entity in the response (with your changes applied). See Response structure for an example response.

Feedback

If you have any feedback or suggestions, feel free to contact us at api@teamwork.com.