The HTTP PATCH method is used to make partial changes to an existing resource. Typically, the PATCH method applies partial modifications to a resource, while the PUT method performs a complete replacement of the resource. Unlike GET and HEAD requests, the PATCH requests may change the server state.
You can send data to the server in the body of the HTTP PATCH message. The type and size of data are not limited. But you must specify the data type in the Content-Type header and the data size in the Content-Length header fields. You can also send data to the server using URL parameters. In this case, you are limited to the maximum size of the URL, which is about 2000 characters (depends on the browser).
The PATCH method is not idempotent, which means that sending an identical PATCH request multiple times may additionally affect the state or cause further side effects.
The following example demonstrates sending a PATCH request to the server:
And the server response:
Last updated: Viewed: 967 timesAuthor: ReqBin