Conditional PATCH
03A strong ETag precondition prevents applying a base-dependent patch to the wrong version.
The client retrieves current state instead of silently corrupting it.
Key idea: Clients should use a conditional request when the patch depends on a known base.
Rules & examples
Clients should use a conditional request when the patch depends on a known base.
- Clients should use a conditional request when the patch depends on a known base.
- If-Match can protect against collisions between concurrent edits.
- Some patch formats are designed for idempotence; the method alone does not guarantee it.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.