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

# Update Advanced Webhook Endpoint

Use this API to update an existing webhook delivery endpoint. At least one field besides `endpointId` must be provided.

> [!NOTE]
>
> This endpoint uses **API-key-level auth**: pass `x-velt-api-key` and `x-velt-auth-token` as headers. You can obtain these from the [Get Auth Tokens](https://velt.dev/docs/api-reference/rest-apis/v2/workspace/authtokens-get.md) endpoint.

> [!NOTE]
>
> Advanced webhooks must be enabled for the workspace first via [Update Advanced Webhook Config](https://velt.dev/docs/api-reference/rest-apis/v2/workspace/advancedwebhookconfig-update.md) with `{ "isEnabled": true }`. Otherwise this endpoint returns a `FAILED_PRECONDITION` error.

> [!NOTE]
>
> **Partial update.** Only the fields you send are changed; omitted fields keep their current values. The response `data` echoes the endpoint's latest post-write state — the same shape returned by [Get Advanced Webhook Endpoints](https://velt.dev/docs/api-reference/rest-apis/v2/workspace/advancedwebhook-endpoints-get.md).

# Endpoint

`POST https://api.velt.dev/v2/workspace/advancedwebhook/endpoints/update`

# Headers

**x-velt-api-key** `string` *required*

Your API key.

**x-velt-auth-token** `string` *required*

Your [Auth Token](https://velt.dev/docs/security/auth-tokens.md).

# Body

#### Params

**data** `object` *required*

**properties**

**endpointId** `string` *required*

The ID of the endpoint to update (returned by the create and list endpoints).

**url** `string`

The URL that will receive webhook events. Must be a valid `http(s)` URL.

**description** `string`

Human-readable description of the endpoint.

**filterTypes** `string[]`

Event types this endpoint subscribes to. Must be a non-empty array when provided. See [Webhooks](https://velt.dev/docs/webhooks/advanced.md) for the full list of event types.

**channels** `string[]`

Channels this endpoint listens to. Must be a non-empty array when provided.

**disabled** `boolean`

Whether the endpoint is disabled. Disabled endpoints do not receive deliveries.

**rateLimit** `number`

Maximum deliveries per second for this endpoint. Positive integer.

**metadata** `object`

Key-value pairs (string values) attached to the endpoint.

# Example Request

```JSON theme={null}
{
  "data": {
    "endpointId": "ep_2vK9mPzGqLxYwBnRtCdHsJfAeUo",
    "description": "Updated endpoint description",
    "disabled": false
  }
}
```

# Example Response

#### Success Response

```JSON theme={null}
{
  "result": {
    "status": "success",
    "message": "Advanced webhook endpoint updated successfully.",
    "data": {
      "id": "ep_2vK9mPzGqLxYwBnRtCdHsJfAeUo",
      "url": "https://example.com/webhooks/velt",
      "description": "Updated endpoint description",
      "filterTypes": ["comment.add", "comment.update"],
      "channels": null,
      "disabled": false,
      "rateLimit": null,
      "uid": null,
      "createdAt": "2026-06-01T10:15:30.000Z",
      "updatedAt": "2026-06-08T14:03:27.000Z"
    }
  }
}
```

#### Failure Response

```JSON theme={null}
{
  "error": {
    "status": "INVALID_ARGUMENT",
    "message": "At least one endpoint field besides endpointId must be provided."
  }
}
```

#### Failure Response (advanced webhooks disabled)

```JSON theme={null}
{
  "error": {
    "status": "FAILED_PRECONDITION",
    "message": "Advanced webhooks are disabled for this workspace. Enable them via POST /v2/workspace/advancedwebhookconfig/update with { \"isEnabled\": true }."
  }
}
```

```js theme={null}
{
  "result": {
    "status": "success",
    "message": "Advanced webhook endpoint updated successfully.",
    "data": {
      "id": "ep_2vK9mPzGqLxYwBnRtCdHsJfAeUo",
      "url": "https://example.com/webhooks/velt",
      "description": "Updated endpoint description",
      "filterTypes": ["comment.add", "comment.update"],
      "channels": null,
      "disabled": false,
      "rateLimit": null,
      "uid": null,
      "createdAt": "2026-06-01T10:15:30.000Z",
      "updatedAt": "2026-06-08T14:03:27.000Z"
    }
  }
}
```


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