Change a webhook's address, types, description, or turn it on or off

Changes what is sent.

PATCH/v1/webhooks/{webhook_id}

Changes what is sent. A new address is checked as on create. enabled: true turns on a webhook that Pod turned off after it only failed (disabled_reason: failing) and clears the reason; its failed events can then be sent again with a replay. The secret is changed only by a rotation.

A key with the webhooks:write scope.

Request

curl -X PATCH "https://api.pod.mapier.ai/v1/webhooks/whk_3ahrz6dmv29gqy5ckt18fp" \
  -H "Authorization: Bearer $POD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"example"}'

Parameters

NameInTypeRequiredWhat it is
webhook_idpathstringYes
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
urlstringNo
types"sandbox.creating" | "sandbox.running" | "sandbox.stopping" | "sandbox.sleeping" | "sandbox.waking" | "sandbox.stopped" | "sandbox.deleting" | "sandbox.deleted" | "sandbox.error" | "sandbox.changed"[]No
descriptionstring | nullNo
enabledbooleanNo

Answer

200. The webhook as it is now.

200
{
  "id": "whk_3ahrz6dmv29gqy5ckt18fp",
  "project": "prj_3ahrz6dmv29gqy5ckt18fp",
  "url": "https://app.example.com",
  "types": ["sandbox.creating"],
  "description": null,
  "enabled": false,
  "disabled_reason": null,
  "secret_rotation_ends_at": null,
  "created_by": "example",
  "created_at": "2026-11-23T12:00:00.000Z",
  "updated_at": "2026-11-23T12:00:00.000Z"
}
FieldTypeAlwaysWhat it is
idstringYes
projectstringYes
urlstringYes
types"sandbox.creating" | "sandbox.running" | "sandbox.stopping" | "sandbox.sleeping" | "sandbox.waking" | "sandbox.stopped" | "sandbox.deleting" | "sandbox.deleted" | "sandbox.error" | "sandbox.changed"[]YesThe types it takes; empty takes every type.
descriptionstring | nullYes
enabledbooleanYes
disabled_reason"failing" | nullYes
secret_rotation_ends_atstring | nullYesWhile a rotation's overlap runs, when the old secret stops signing; null otherwise.
created_bystringYesThe identity account or key id that made it.
created_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
updated_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.

Errors

The refusals this call is known for: invalid, forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.webhooks.update(id, { … })
Pythonpod.webhooks.update(id, …)