Update webhook

http
PATCH /projects/{project_reference}/webhooks/{webhook_id}

Change the name, target, prompt template, event filter or status of a webhook, for example to enable or disable deliveries; returns the updated webhook. Requires project.agents.write.

Parameters

NameInRequiredDescription
project_referencepathYes
webhook_idpathYesThe webhook id. Updates require project.agents.write. When target is omitted, a stored conversation-backed target (create_new or existing conversation mode) still requires project.conversations.write.

Request body

FieldTypeRequiredDescription
namestringNew webhook name, 1-120 characters.
targetobjectTarget invoked by a webhook definition.
prompt_templatestringPrompt template for run targets. Not supported for event-only webhooks.
event_filterobject,nullOptional incoming event filter. Missing, null, or empty conditions accept every event.
statusstringdraft, enabled or disabled.

Responses

StatusDescription
200Updated webhook metadata or status.
400invalid_input: invalid body or parameters
401unauthenticated
403forbidden: a project member without the required capability
404not_found: project or webhook not found or not visible
500internal
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly