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

# Update a webhook

`PATCH /v1/webhooks/{id}`

## Request

- Base URL: `https://api.picsha.ai`
- URL: `https://api.picsha.ai/v1/webhooks/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` number, required

## Headers

- `x-org-id` string
- `x-external-user-id` string

## Request body

- object
  - `url` string, uri
  - `events` string[]
  - `config` object
    - `include_embeddings` boolean
    - `include_text` boolean

## Response `200`

Default Response

- object
  - `id` number, required
  - `url` string, required
  - `events` string[], nullable, required
  - `config` unknown, required

## Other responses

- `400`: Default Response
- `404`: Default Response

---

[API](https://skmtc.dev/picsha/apis/picsha-ai-api.md) · [All operations](https://skmtc.dev/picsha/apis/picsha-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/picsha/apis/picsha-ai-api/revisions/f77c6ac40e70?raw)
