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

# Update webhook subscription

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

## Request

- Base URL: `https://www.poster.ly`
- URL: `https://www.poster.ly/api/v1/webhooks/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- WebhookUpsertRequest
  - `url` string, uri
  - `description` string, nullable
  - `events` string[]
  - `workspace_id` string, nullable
  - `is_active` boolean

## Response `200`

Webhook updated successfully

- WebhookResponse
  - `webhook` Webhook, required
    - `id` string, required
    - `workspace_id` string, nullable
    - `url` string, required
    - `description` string, nullable
    - `events` string[], required
    - `is_active` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `last_delivery_at` string, date-time, nullable
    - `last_delivery_status` integer, nullable
    - `last_error` string, nullable
  - `secret` string, nullable

## Other responses

- `400`: Validation error
- `401`: Invalid or missing API key
- `404`: Resource not found
- `429`: Too many requests

---

[API](https://skmtc.dev/poster/apis/posterly-api.md) · [All operations](https://skmtc.dev/poster/apis/posterly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/poster/apis/posterly-api/revisions/60be02a61f95?raw)
