---
title: "Update webhook"
method: PUT
path: "/partner_api/v1/webhooks/{id}"
tags: ["Webhooks"]
---

# Update webhook

`PUT /partner_api/v1/webhooks/{id}`

## Request

- Base URL: `https://api.contentsnare.com`
- URL: `https://api.contentsnare.com/partner_api/v1/webhooks/{id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/oauth/authorization`
    - Token URL: `/oauth/token` scopes: `administration`
  - HTTP bearer

Updates a webhook<br>Required scopes: <b>administration</b>

## Path parameters

- `id` string, required

## Request body

- NewOrUpdateWebhook
  - `enabled` boolean: Specifies if webhook is enabled
  - `subscriptions` string[]: List of events associated with webhook
  - `url` string, required: Your webhook URL

## Response `200`

successful

- Webhook
  - `enabled` boolean
  - `id` string
  - `subscriptions` string[]
  - `type` string
  - `url` string

## Other responses

- `401`: unauthorized
- `403`: forbidden
- `404`: not found
- `422`: unprocessable entity

---

[API](https://skmtc.dev/contentsnare/apis/api-general-info.md) - [All operations](https://skmtc.dev/contentsnare/apis/api-general-info/llms.txt) - [OpenAPI document](https://skmtc.dev/contentsnare/apis/api-general-info/revisions/d3048549a0ba?raw)
