Skip to content

Deletes a webhook

DELETE
/webhook/{name}

Deletes a webhook by name. When the deleted webhook is the last one in the organization’s source, the source row is removed entirely; otherwise the remaining webhooks are kept. Returns 404 when the organization has no source configured or no webhook with that name exists. Only owner and admin roles can delete a webhook.

name
required
string
/^[a-z0-9-]{1,64}$/

Webhook deleted

object
code
required
Allowed values: ok

Invalid webhook name

object
code
required
Allowed values: invalid name
Example
invalid name
message
Array<string>

Unauthorized

object
code
required
Allowed values: unauthorized
Example
unauthorized

User doesn’t belong to the organization

Any of:
object
code
required
Allowed values: no organization
Example
no organization

Webhook not found

object
code
required
Allowed values: not found
Example
not found