HTTP 412 Precondition Failed — what should I change in my request?

The server could not satisfy a condition attached to the request. Inspect If-Match or If-Unmodified-Since and compare it with the current resource. An older editor tab can still hold the validator from the version it opened, even though another write has changed the record.
Fetch the current representation and reconcile the changes. Submit the updated write with the validator for the version you actually reviewed. Keep the precondition in place so another concurrent update remains detectable.
To exercise a stale ETag, open two copies of the record, save one and attempt to save the other. If a conflict is expected in a collaborative edit, exercise that case with two copies of the record. Check that the application reports the changed resource and lets the user decide how to proceed.
curl -i -X PUT https://api.example.com/items/123 \ -H 'If-Match: "etag-from-earlier-read"' \ -H 'Content-Type: application/json' –data '{"name":"New"}'
Fetch the latest representation and compare its ETag or modification time with the precondition in the failed request.