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

# Update webhook

`PATCH /api/webhooks/{id}`

## Request

- Base URL: `https://api.postproxy.dev`
- URL: `https://api.postproxy.dev/api/webhooks/{id}`
- Auth: HTTP bearer

Updates a webhook's URL, subscribed events, enabled state, or description.

## Path parameters

- `id` string, required

## Query parameters

- `profile_group_id` string

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `url` string: New HTTPS URL.
  - `events` string[]: New event types.
  - `enabled` boolean: Enable or disable the webhook.
  - `description` string: Updated description.

## Response `200`

The updated webhook

- WebhookSubscription: A webhook subscription that receives event deliveries at an HTTPS URL.
  - `id` string: Webhook id.
  - `url` string: HTTPS URL that receives webhook events.
  - `events` string[]: Subscribed event types (["*"] means all events).
  - `enabled` boolean: Whether the webhook is enabled.
  - `description` string: Description for the webhook.
  - `secret` string: Signing secret used to verify webhook signatures. Only included when fetching a single webhook or immediately after creation.
  - `created_at` string: ISO 8601 creation time.
  - `updated_at` string: ISO 8601 last update time.

## Other responses

- `401`: Invalid, missing, or insufficient API key permissions.

---

[API](https://skmtc.dev/postproxy/apis/postproxy-social-media-api.md) - [All operations](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/llms.txt) - [OpenAPI document](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/revisions/d54482ac4ce7?raw)
