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

# Update a webhook endpoint

`PATCH /v1/webhooks/{id}`

## Request

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

Partially updates a webhook endpoint. Only the provided fields are updated. The signing secret cannot be changed.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `url` string, uri
  - `events` string[]
  - `active` boolean

## Response `200`

Webhook endpoint updated

- object
  - `id` string, uuid, required
  - `url` string, required
  - `events` string[], required
  - `active` boolean, required
  - `verification_status` 'pending' | 'verified' | 'failed', required
  - `verified_at` string, nullable, required
  - `verification_last_error` string, nullable, required
  - `consecutive_failures` integer, required
  - `suspended_at` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `400`: Invalid input
- `401`: Unauthorized
- `404`: Webhook endpoint not found

---

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