Updating data
Some resources have properties that can be updated. The properties that can be updated are marked in the resource documentation as writable
.
To update a resource, you need to send a PATCH
request to the resource's endpoint. The request body should contain only the properties that you want to update.
Updates is asynchronous. The update process is as follows:
- You send a
PATCH
request to the resource's endpoint. - The API responds with a
202 Accepted
status code and aLocation
header with a reference to a/status/<uuid>
resource. - The
/status/<uuid>
resource will continue to respond with202 Accepted
until it's finished.- If the update is successful, the
/status/<uuid>
resource will respond with a303 See Other
status code and aLocation
header referring to the updated resource. - If the update fails, the
/status/<uuid>
resource will respond with a4xx
-series status code and an error message.
- If the update is successful, the