Skip to main content

core.medplumclient.patch

Home > @medplum/core > MedplumClient > patch

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

ParameterTypeDescription
urlURL | stringThe target URL.
operationsPatchOperation[]Array of JSONPatch operations.
optionsMedplumRequestOptions(Optional) Optional fetch options.

Returns:

Promise<any>

Promise to the response content.