---
title: "Update a webhook"
method: PATCH
path: "/v2/webhooks/{webhook_id}/"
tags: ["webhooks"]
---

# Update a webhook

`PATCH /v2/webhooks/{webhook_id}/`

Update a webhook

## Path parameters

- `webhook_id` string, required — Unique identifier for a resource

## Request body

- object
  - `metadata` WebhookResourceMetadata
    - `webhook_url` string, required — Valid HTTPS endpoint to be notified upon event(s) occurring
    - `events` WebhookEvent[], required — Subscribed events that trigger a notification
    - `name` string, required — Display name for webhook subscription
    - `description` string — Description for the webhook subscription
    - `site_ids` ResourceId[], required — List of site IDs corresponding to the webhook Each site ID is the unique identifier for each property. You can specify any number of site IDs in this array.

## Response `200`

Resource successfully updated

- WebhookResourceRead — Resource for managing the individual webhooks of an account
  - `schema` string
  - `id` string — Unique identifier for a resource
  - `created` string — Date and time at which the resource was created
  - `last_modified` string — Date and time at which the resource was most recently modified
  - `type` string — Name of the type of resource.
  - `relationships` object — Ancilliary resources associated to the primary resource being read
  - `metadata` WebhookResourceMetadata
    - `webhook_url` string, required — Valid HTTPS endpoint to be notified upon event(s) occurring
    - `events` WebhookEvent[], required — Subscribed events that trigger a notification
    - `name` string, required — Display name for webhook subscription
    - `description` string — Description for the webhook subscription
    - `site_ids` ResourceId[], required — List of site IDs corresponding to the webhook Each site ID is the unique identifier for each property. You can specify any number of site IDs in this array.

## Other responses

- `400` — Bad Request The request either lacks certain attributes or contains malformed/invalid attributes.
- `404` — Not Found The requested asset could not be found.

---

[API](https://skmtc.net/jwplayer/apis/management-api-v2.md) · [All operations](https://skmtc.net/jwplayer/apis/management-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jwplayer/management-api-v2/revisions/180db7cada27/schema)
