## MedplumClient.post() method [​](/content/docs/sdk/core.medplumclient.post#medplumclientpost-method "Direct link to MedplumClient.post(/index.html) method")

Makes an HTTP POST 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 `createResource()`.

**Signature:**

```typescript
post<T = any>(url: URL | string, body?: any, contentType?: string, options?: MedplumRequestOptions): Promise<T>;
```

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

| Parameter | Type | Description |
| --- | --- | --- |
| url | URL \| string | The target URL. |
| body | any | _(Optional)_ 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](/content/docs/sdk/core.medplumrequestoptions) | _(Optional)_ Optional fetch options. |

**Returns:**

Promise<T>

Promise to the response content.

- [MedplumClient.post() method](/content/docs/sdk/core.medplumclient.post#medplumclientpost-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.post#parameters/index.html)
