---
title: "Update Webhook"
description: "How to call Update Webhook (PATCH /api/webhooks/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/update_webhook"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/update_webhook"
operationId: "update_webhook"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/webhooks/{id}"
authentication: "privateKey"
scopes: ["webhooks:write"]
rateLimits: {"burst":"1/s","steady":"15/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/webhooks/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_webhooks.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_webhook.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_webhook.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_webhook.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_webhook_topics.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_webhook_topic.md"]
---

# Update Webhook

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/update_webhook

```http
PATCH https://a.klaviyo.com/api/webhooks/{id}
```

Update the webhook with the given ID.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `webhooks:write`
- Rate limits: Burst: `1/s`, Steady: `15/m`

## Example request

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/webhooks/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "webhook",
    "id": "string",
    "attributes": {
      "endpoint_url": "https://www.example.com/example/path"
    }
  }
}'
```

## Path parameters

- `id` (string, required): The ID of the webhook.

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `webhook`
  - `id` (string, required): The ID of the webhook.
  - `attributes` (object, required)
    - `name` (string, nullable): A name for the webhook.
    - `description` (string, nullable): A description for the webhook.
    - `endpoint_url` (string, nullable): A url to send webhook calls to. Must be https. Example: `https://www.example.com/example/path`
    - `secret_key` (string, nullable): A secret key, that will be used for webhook request signing.
    - `enabled` (boolean, nullable): Is the webhook enabled.
  - `relationships` (object)
    - `webhook-topics` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.

### Example request body

```json
{
  "data": {
    "type": "webhook",
    "id": "string",
    "attributes": {
      "endpoint_url": "https://www.example.com/example/path"
    }
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `webhook`
  - `id` (string, required): The ID of the webhook. Example: `01HF7AYTK76RHR4F17G6DGTRGF`
  - `attributes` (object, required)
    - `name` (string, required): A name for the webhook. Example: `My Webhook`
    - `description` (string, nullable): A description for the webhook. Example: `A webhook for sms events`
    - `endpoint_url` (string, required): The url to send webhook requests to, truncated for security. Example: `https://www.example.com`
    - `enabled` (boolean, required): Is the webhook enabled.
    - `created_at` (string<date-time>, required): Date and time when the webhook was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T01:23:45+00:00`
    - `updated_at` (string<date-time>, required): Date and time when the webhook was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T01:23:45+00:00`
  - `relationships` (object)
    - `webhook-topics` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "webhook",
    "id": "01HF7AYTK76RHR4F17G6DGTRGF",
    "attributes": {
      "name": "My Webhook",
      "description": "A webhook for sms events",
      "endpoint_url": "https://www.example.com",
      "enabled": true,
      "created_at": "2022-11-08T01:23:45+00:00",
      "updated_at": "2022-11-08T01:23:45+00:00"
    },
    "relationships": {
      "webhook-topics": {
        "data": [
          {
            "type": "webhook-topic",
            "id": "event:klaviyo.sent_sms"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
