Update a webhook target
const url = 'https://api.vocapable.com/v1/webhook-targets/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example","parameters":{},"side_effect":"read_only","url":"example","timeout_seconds":1,"max_invocations_per_call":1,"status":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.vocapable.com/v1/webhook-targets/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "parameters": {}, "side_effect": "read_only", "url": "example", "timeout_seconds": 1, "max_invocations_per_call": 1, "status": "example" }'Apply the supplied fields, under the same boundary checks as registration.
An edit takes effect for calls redeemed after it commits; a call already running keeps the configuration its session was bound with.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”PATCH /webhook-targets/{id}. Only the fields present in the body are applied.
webhook_id is deliberately not editable: it is the identity the model reads, the
transcript records, and the eval store keys on. Renaming a target is registering a new
one and disabling the old. status: "active" is the re-enable path; the one-way
convenience for the other direction is DELETE.
object
Whether an invocation only reads, or changes state something else can observe.
Two values by design: anything that is not a lookup gets an idempotency key. That is
why end_call - runtime-local, but a state change - is MUTATING.
Responses
Section titled “Responses”Successful Response
A target as every read renders it - structurally incapable of leaking a secret.
object
object
Examplegenerated
{ "id": "example", "webhook_id": "example", "description": "example", "parameters": {}, "side_effect": "example", "timeout_seconds": 1, "max_invocations_per_call": 1, "url": "example", "status": "example", "previous_secret_expires_at": "2026-04-15T12:00:00Z", "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z"}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}