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

# Update Webhook

`PUT /webhooks/{id}`

## Path parameters

- `id` string, id, required

## Request body

- object
  - `url` string
  - `scopes` string[]
  - `enabled` boolean
  - `token` string

## Response `201`

The updated webhook

- Webhook
  - `id` string, required — A unique ID for the Webhook.
  - `company_id` string — A unique ID for the Company the Webhook belongs to
  - `url` string — The URL of the webhook, which will receive requests with data for any events fired that fall within the scopes of the Webhook.
  - `scopes` string[] — A list of scopes covering events the Webhook is subscripted to.
  - `token` string — A string used to hash the webhook body for verification.
  - `enabled` boolean — Whether or not the Webhook is enabled/active.
  - `created_at` integer — Timestamp when the Webhook was created on the server
  - `updated_at` integer — Timestamp when the Webhook was last updated

## Other responses

- `400` — Bad Request
- `404` — Not found
- `500` — Unexpected error

---

[API](https://skmtc.dev/companycam/apis/core-api.md) · [All operations](https://skmtc.dev/companycam/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/companycam/core-api/revisions/f2cd76b46603/schema)
