Skip to main content
PATCH
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint. Include as Authorization: Bearer <token>.

Path Parameters

webhookId
string<uuid>
required

Body

application/json

At least one of url, events, is_active, business_unit, or rotate_secret must be provided.

url
string<uri>
events
enum<string>[]
Available options:
scan.created,
scan.completed,
scan.failed,
scan.cancelled,
vulnerability.created,
vulnerability.status_changed,
vulnerability.severity_changed,
*
business_unit
string | null

Set to a string to restrict deliveries to that business_unit (requires the Enterprise plan), or null to clear the scope (organization-wide).

is_active
boolean
rotate_secret
boolean

If true, generate and return a new signing secret.

Response

Webhook updated. Includes secret if rotate_secret was true.

webhook
object
required
secret
string

New signing secret, only present when rotate_secret was true.