Skip to main content
Version: Next

Http Patch

Perform an HTTP PATCH request.

Description

Sends an HTTP PATCH request to the specified URL and provide the results.

The HTTP PATCH request method applies partial modifications to a resource. The HTTP PUT method only allows complete replacement of a document. Unlike PUT, PATCH is not idempotent, meaning successive identical patch requests may have different effects. However, it is possible to issue PATCH requests in such a way as to be idempotent.

Additional headers can be provided and returned in a string that has to be in JSON format.

Example: '{"Content-Type": "text/html; charset=UTF-8", "Content-Length": 1024 }'

The returned body is formatted depending on the mimeType received in the headers : as an UTF-8 string for common text content (text/html, application/json, ...), and as a base64 string for all other contents.

Inputs

  • url (String): The URL to query.
  • headers (Object): Optional HTTP headers in a JSON object or a JSON parsable string.
  • body (String): The body of the request. The body must be a JSON parsable string.

Outputs

  • status code (Number): The response status code.
  • body (String): The body (i.e. the content) of the response.
  • headers (String): The response headers.
  • Error Flow (Error Flow): Triggered if an error occurs.