Skip to content

Commit

Permalink
#25403 update docs on updating object id with put and patch requests
Browse files Browse the repository at this point in the history
  • Loading branch information
WHLukasz committed Oct 9, 2024
1 parent ac541ad commit ac193e7
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit ac193e7

Please sign in to comment.