Visual RFC.
ALL RFCs / RFC 5789
Read the RFC ↗
RFC 5789 / MECHANISM GUIDE

Conditional PATCH

03

A strong ETag precondition prevents applying a base-dependent patch to the wrong version.

RFC 5789 · § 2EXAMPLE
3 / 3
03
Reject stale patch

The client retrieves current state instead of silently corrupting it.

Conditional PATCHA strong ETag precondition prevents applying a base-dependent patch to the wrong version.Conditional PATCHClient base: v7Current: v8If-Match: "v7"v7 ≠ v8412 · stale patch not applied

Key idea: Clients should use a conditional request when the patch depends on a known base.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 5789

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗