core.medplumclient.patch | Medplum

MedplumClient.patch() method

Makes an HTTP PATCH request to the specified URL.

This is a lower level method for custom requests. For common operations, we recommend using higher level methods such as patchResource().

Signature:

patch(url: URL | string, operations: PatchOperation[], options?: MedplumRequestOptions): Promise<any>;

Parameters [​](/content/docs/sdk/core.medplumclient.patch#parameters "Direct link to Parameters"/index.html)

Parameter Type Description
url URL | string The target URL.
operations PatchOperation Array of JSONPatch operations.
options MedplumRequestOptions (Optional) Optional fetch options.

Returns:

Promise

Promise to the response content.