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

# Update webhook subscription

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

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/webhooks/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/webhooks/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing webhook subscription

## Path parameters

- `id` string, required

## Request body

- UpdateWebhookRequest
  - `url` string, uri: Updated URL to receive webhook event payloads
  - `events` string[]: Updated list of event types to subscribe to
  - `active` boolean: Whether the subscription is active

## Response `200`

Webhook subscription updated

- WebhookSubscription: A webhook subscription for receiving event notifications
  - `id` string: Unique subscription identifier
  - `url` string, uri: URL that receives webhook event payloads
  - `events` string[]: Event types this subscription listens for
  - `active` boolean: Whether the subscription is currently active
  - `tenant_id` string: Tenant ID that owns this subscription
  - `org_id` string: Organization ID that owns this subscription
  - `secret` string: Secret key for HMAC-SHA256 signature verification
  - `created_at` string, date-time: When the subscription was created
  - `updated_at` string, date-time: When the subscription was last updated

## Other responses

- `400`: Invalid request
- `404`: Resource not found

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/revisions/f408ef3ec9dd?raw)
