# update_webhook_endpoint

Change, pause or resume a webhook endpoint

`PATCH /v1/webhook-endpoints/{endpoint_id}`

| | |
| --- | --- |
| Risk | write |
| Authentication | API key or OAuth access token |
| Scopes | `webhooks:write` |
| Idempotency | supported: send an Idempotency-Key header to make retries safe |
| Dry run | yes: add dry_run=true to the query |
| Success status | 200 |
| Response type | application/json |

## What it does

- Use when: You change the address, description or event types, pause deliveries, or resume a disabled endpoint with status active.
- Do not use when: you want a new signing secret (call rotate_webhook_secret).
- Side effects: Changes the endpoint; A paused endpoint drops events until it is resumed.
- Reversible: Yes, call update_webhook_endpoint again.
- Required scope: webhooks:write.
- Idempotency: supported (Idempotency-Key header).
- Typical next step: call send_test_webhook after changing the address.

## Scopes

- `webhooks:write`: Create, change and delete webhook endpoints.

## Side effects

- Changes the endpoint
- A paused endpoint drops events until it is resumed

## Request

### Path parameters

| Field | Type | Description |
| --- | --- | --- |
| `endpoint_id` | string |  |

### Query parameters

None.

Every mutation also accepts `dry_run=true`: it runs every check and returns `{"dry_run": true, "would": {...}}` without writing anything.

### Body (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string, max 2048 characters | no | An https address on port 443 with a public DNS name. IP addresses, localhost and private networks are refused. |
| `description` | string, max 200 characters or null | no |  |
| `event_types` | array of string, max 60 characters, max 36 items | no | Event types to receive (see list_event_types), or ["*"] for all. |
| `status` | one of "active", "paused" | no |  |

## Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |
| `url` | string | yes |  |
| `description` | string or null | yes |  |
| `event_types` | array of string | yes | Subscribed event types, or ["*"] for all of them. |
| `status` | one of "active", "paused", "disabled_failing" | yes | disabled_failing means every delivery failed for 5 days or the receiver answered 410 Gone. Update the endpoint to active to resume. |
| `secret_rotation_ends_at` | string or null | yes | While set, deliveries are signed with the new and the previous secret. |
| `failing_since` | string or null | yes |  |
| `created_at` | string | yes | RFC 3339 UTC timestamp. |

## Examples

### pause

Request:

```bash
curl -X PATCH 'https://api.seemly.com/v1/webhook-endpoints/whe_4d8x2p0q7r3m9k1v5t6w8y0z' \
  -H "Authorization: Bearer $SEEMLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "paused"
}'
```

Response: `200`:

```json
{
  "id": "whe_4d8x2p0q7r3m9k1v5t6w8y0z",
  "url": "https://hooks.example.com/seemly",
  "description": "Order sync",
  "event_types": [
    "subscriber.confirmed",
    "subscriber.unsubscribed"
  ],
  "status": "paused",
  "secret_rotation_ends_at": null,
  "failing_since": null,
  "created_at": "2026-12-02T09:30:00Z"
}
```

## Errors

| Status | Codes |
| --- | --- |
| 400 | [`validation_failed`](/developers/md/errors/validation_failed) |
| 401 | [`unauthenticated`](/developers/md/errors/unauthenticated), [`credential_revoked`](/developers/md/errors/credential_revoked), [`credential_expired`](/developers/md/errors/credential_expired) |
| 403 | [`insufficient_scope`](/developers/md/errors/insufficient_scope), [`plan_does_not_include`](/developers/md/errors/plan_does_not_include), [`workspace_paused`](/developers/md/errors/workspace_paused), [`api_suspended`](/developers/md/errors/api_suspended), [`consent_required`](/developers/md/errors/consent_required) |
| 404 | [`not_found`](/developers/md/errors/not_found) |
| 409 | [`conflict`](/developers/md/errors/conflict), [`idempotency_key_reused`](/developers/md/errors/idempotency_key_reused), [`request_in_progress`](/developers/md/errors/request_in_progress) |
| 413 | [`payload_too_large`](/developers/md/errors/payload_too_large) |
| 415 | [`unsupported_media_type`](/developers/md/errors/unsupported_media_type) |
| 429 | [`rate_limited`](/developers/md/errors/rate_limited), [`quota_exceeded`](/developers/md/errors/quota_exceeded) |
| 503 | [`service_unavailable`](/developers/md/errors/service_unavailable) |

Every error is an `application/problem+json` body with a `code`, a `fix` sentence and `next_actions`. See [reading a problem response](/developers/md/guides/agents#reading-a-problem-response).

## Typical next steps

- [`send_test_webhook`](/developers/md/operations/send_test_webhook)
- [`get_webhook_endpoint`](/developers/md/operations/get_webhook_endpoint)

## Related

- [OpenAPI document](https://api.seemly.com/v1/openapi.json)
- [Agent guide](/developers/md/guides/agents)
