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

Parameter

Type

Description

url

URL | string

The target URL.

operations

PatchOperation[]

Array of JSONPatch operations.

options

MedplumRequestOptions

(Optional) Optional fetch options.

Returns:

Promise<any>

Promise to the response content.