lookup> PATCH

PATCH

Applies a partial modification to the target resource, unlike PUT which replaces it entirely.

unsafenot idempotentnot cacheableRFC5789
PropertyValue
Safe (does not modify state)No
Idempotent (repeatable)No
CacheableNo

Applies a partial modification to the target resource, unlike PUT which replaces it entirely.

curl -X PATCH https://api.example.com/users/1 -H "Content-Type: application/json" -d '{"name":"Ada"}'
PATCH /api/users/1 HTTP/1.1
Host: example.com
Content-Type: application/json

{"name":"Ada"}
PATCHPUT
Apply a partial updateReplace the whole resource
Not necessarily idempotentIdempotent

Is the PATCH method safe?

PATCH is not a safe method — calling it can change resource state.

What happens if I send PATCH repeatedly?

PATCH is not idempotent — repeated requests may produce different results.

All HTTP methods

Related status codes

Related headers