> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Settings

> Updates your account's settings.

## Body

**webhookUrl** `string` *required*

The webhook URL to be stored with your settings. It should be a valid URL.

> [!NOTE]
>
> For requirements for this URL, see [our Webhooks guide](https://docs.metriport.com/medical-api/getting-started/webhooks.md).

## Response

**id** `string` *required*

The settings ID.

**webhookUrl** `string` *required*

Your application's webhook URL.

**webhookKey** `string` *required*

The key used to authenticate webhook calls to your app.

```javascript Metriport SDK theme={null}
import { MetriportMedicalApi } from "@metriport/api-sdk";

const metriportClient = new MetriportMedicalApi("YOUR_API_KEY");

const response = await metriportClient.updateSettings("https://api.health.com/webhook");
```

Example response:

```json theme={null}
{
  "id": "<settings-id>",
  "webhookUrl": "https://server.domain.com/webhook/endpoint",
  "webhookKey": "<webhook-key>"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.