---
title: "Change a webhook's URL or switch it on or off"
method: PATCH
path: "/status-pages/{status_page_id}/webhooks/{webhook_id}"
tags: ["Status Page"]
---

# Change a webhook's URL or switch it on or off

`PATCH /status-pages/{status_page_id}/webhooks/{webhook_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/status-pages/{status_page_id}/webhooks/{webhook_id}`
- Auth: HTTP bearer

## Path parameters

- `status_page_id` integer, required
- `webhook_id` integer, required

## Request body

- UpdateStatusPageWebhookRequest: Fields left out are unchanged.
  - `enabled` boolean, nullable
  - `url` string, nullable

## Response `200`

Webhook updated

- StatusPageWebhookResponse
  - `created_at` string, date-time, required
  - `enabled` boolean, required
  - `has_secret` boolean, required: The signing secret is stored encrypted and shown only when the webhook is created.
  - `id` integer, required
  - `last_attempt_at` string, date-time, nullable
  - `last_failure_reason` string, nullable: Why the last delivery failed, until one succeeds.
  - `last_success_at` string, date-time, nullable
  - `status_page_id` integer, required
  - `updated_at` string, date-time, required
  - `url` string, required

## Other responses

- `400`: Invalid URL or non-public address
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page or webhook not found
- `500`: Internal server error

## Changes

- **2026-11-21** `d57a37c13a27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/status-pages/:status_page_id/webhooks/:webhook_id/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
