The server requires the request to be conditional (If-Match etc.) to prevent lost updates.
428 Precondition Required (RFC 6585) is returned when a client tries to modify a resource without sending a precondition such as If-Match. The server forces clients to prove they have seen the latest version, so two clients editing at once cannot silently overwrite each other.
If-Match: "<etag>".| Header | Role |
|---|---|
If-Match | The precondition the client must send. |
ETag | Value to use in If-Match. |
HTTP/1.1 428 Precondition Required
Content-Type: application/json
{"error": "Send If-Match with the current ETag"}