Patch versus replacement
01PATCH submits modification instructions rather than a complete replacement representation.
Other values survive according to the patch format.
Key idea: The request media type identifies the patch-document format.
Rules & examples
The request media type identifies the patch-document format.
- The request media type identifies the patch-document format.
- PATCH is neither safe nor inherently idempotent.
- Creation of a missing target is possible only when the patch format and permissions allow 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.
This document adds PATCH for partial modification because PUT replacement does not express a generic set of modification instructions. JSON Patch is specified separately.
Read the updated RFC section ↗