Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#25403 update docs on updating object id with put and patch requests #290

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/API/content-type/updating-co.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ There are two ways to update the content of an object:

`PUT`:
When updating the object (`PUT` requests), all properties must be present in the request body,
as the object data are replaced with the request body. The id property inside the object is ignored in `PUT` requests.
as the object data are replaced with the request body.
Validation of update request works the same as in saving requests.

`PATCH`:
When updating an object (a `PATCH` request), it is not necessary to specify all the properties of the object.
The id property inside the object is ignored in `PATCH` requests.
Validating the update request works the same as it does when saving requests.

!!! note
Expand Down Expand Up @@ -269,6 +268,9 @@ to the supporting endpoint `https://api.flotiq.com/api/v1/content/{name}/{id}` t
```
{ data-search-exclude }

!!! note
The id property of the object can be updated through API if id provided in the request body is different from the one provided in request path.
This only works in updating single content object

#### Possible validation errors

Expand Down
Loading