Discover patch formats
04Accept-Patch lists the patch media types accepted for the target resource.
Select a supported document format rather than assuming arbitrary JSON works.
Key idea: Accept-Patch should appear in OPTIONS responses for PATCH-capable resources.
Rules & examples
Accept-Patch should appear in OPTIONS responses for PATCH-capable resources.
- Accept-Patch should appear in OPTIONS responses for PATCH-capable resources.
- Its presence implicitly indicates PATCH is allowed on that target.
- Allow advertises methods; Accept-Patch advertises formats.
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.