PATCH

noun

say it: “PACH” /ˈpætʃ/

The HTTP method that changes only some fields of a resource, leaving the rest alone.

What is PATCH?

PATCH changes only the fields you send, leaving the rest of the resource alone.

PATCH /recipes/42

{ "minutes": 15 }

In a sentence

  • “PATCH /tickets/7 with { "status": "done" } changes only the status.”
  • “Use PATCH when the client sends a few fields, PUT when it sends the whole thing.”

Level: Apprentice · More REST API terms at this level

Updated

In other subjects