core.medplumclient.put | Medplum
MedplumClient.put() method
Makes an HTTP PUT 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 updateResource().
Signature:
put(url: URL | string, body: any, contentType?: string, options?: MedplumRequestOptions): Promise<any>;
Parameters [](/content/docs/sdk/core.medplumclient.put#parameters "Direct link to Parameters"/index.html)
| Parameter | Type | Description |
|---|---|---|
| url | URL | string | The target URL. |
| body | any | The content body. Strings and File objects are passed directly. Other objects are converted to JSON. |
| contentType | string | (Optional) The content type to be included in the "Content-Type" header. |
| options | MedplumRequestOptions | (Optional) Optional fetch options. |
Returns:
Promise
Promise to the response content.