---
title: "Update a webhook"
method: PUT
path: "/v1/company_webhooks/{id}"
---

# Update a webhook

`PUT /v1/company_webhooks/{id}`

## Path parameters

- `id` integer, required

## Headers

- `X-Time-Zone` string
- `X-Metric-Units` boolean
- `X-User-Id` integer

## Request body

- object
  - `url` string — Specify the URL of the Webhook endpoint.
  - `secret` string — Specify the shared secret that will be used to fetch the data. NOTE: Must be 20 characters. If left blank, will be generated automatically.
  - `format` string — Payload format for the webhook (only json is supported at this time).
  - `actions` string[] — Specify a list of actions that will be supported by the Webhook.
  - `enabled` boolean — Specify if you want to activate this Webhook. Set TRUE to activate. Set FALSE to disable.

## Response `200`

200

- object
  - `company_webhook` object
    - `id` integer
    - `url` string
    - `secret` string
    - `format` string
    - `actions` string[]
    - `enabled` boolean

## Other responses

- `400` — 400
- `404` — 404

---

[API](https://skmtc.net/gomotive/apis/motive.md) · [All operations](https://skmtc.net/gomotive/apis/motive/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gomotive/motive/revisions/c71780e497f5/schema)
