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

# Update webhook

`PUT /webhooks/{webhook_id}`

## Path parameters

- `webhook_id` string, required

## Request body

- UpdateWebhookRequestBody
  - `credit_trigger_configs` CreditTriggerConfig[], nullable
    - `credit_id` string, required
  - `entitlement_trigger_configs` EntitlementTriggerConfig[], nullable
    - `feature_id` string, required
  - `name` string, nullable
  - `request_types` WebhookRequestType[], nullable
  - `status` 'active' | 'inactive'
  - `url` string, nullable

## Response `200`

OK

- object
  - `data` WebhookResponseData, required
    - `created_at` string, date-time, required
    - `credit_trigger_configs` CreditTriggerConfig[], nullable
      - `credit_id` string, required
    - `entitlement_trigger_configs` EntitlementTriggerConfig[], nullable
      - `feature_id` string, required
    - `id` string, required
    - `name` string, required
    - `request_types` WebhookRequestType[], required
    - `secret` string, required
    - `status` 'active' | 'inactive', required
    - `updated_at` string, date-time, required
    - `url` string, required
  - `params` object, required — Input parameters

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server error

---

[API](https://skmtc.net/schematichq/apis/schematic-api.md) · [All operations](https://skmtc.net/schematichq/apis/schematic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/schematichq/schematic-api/versions/873fb318b08a/schema)
