---
title: "Change a webhook"
method: PATCH
path: "/api/v1/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Change a webhook

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

## Request

- Base URL: `https://app.argorant.com`
- URL: `https://app.argorant.com/api/v1/webhooks/{webhook_id}`
- Auth: HTTP bearer

Change the URL, the events, or switch it off and on. Only the fields you send change.

| Cost | What it does | Key scopes |
| --- | --- | --- |
| Free | Writes | `argorant:manage_lists` |

## Path parameters

- `webhook_id` integer, required

## Headers

- `Idempotency-Key` string
- `X-Request-Id` string

## Request body

- object
  - `url` string, uri: New URL.
  - `events` WebhookEvent[]: New events.
  - `active` boolean: On or off.

## Response `200`

OK

- object
  - `webhook` object
    - `id` string
    - `url` string
    - `events` string[]
    - `active` boolean
    - `failure_count` integer
    - `last_error` string, nullable
    - `last_success_at` string, nullable
    - `created_at` string

## Other responses

- `401`: 401 Unauthorized. `unauthorized` when the API key is missing, wrong or revoked.
- `403`: 403 Forbidden. `scope_missing` when the key lacks argorant:manage_lists.
- `404`: 404 Not found. `not_found` when the item does not exist in your workspace.
- `409`: 409 Conflict. `idempotency_conflict` when the Idempotency-Key was used with another body.
- `422`: 422 Validation error. `validation_error` when a field has the wrong type or is missing.
- `429`: 429 Too many requests. `rate_limited` when too many requests this minute.

---

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