Change an endpoint's URL, events or whether it is enabled
PATCH
/v1/webhooks/{webhook}
const url = 'https://example.com/v1/webhooks/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"events":["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://example.com/v1/webhooks/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "events": [ "example" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”webhook
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
events
Array<string>
Example generated
{ "events": [ "example" ]}Responses
Section titled “Responses”The answer.
Media typeapplication/json
object
id
required
string
url
required
string
events
required
Array<string>
enabled
required
boolean
createdAt
required
string
secret
string
Example generated
{ "id": "example", "url": "example", "events": [ "example" ], "enabled": true, "createdAt": "example", "secret": "example"}No key, or not a valid one.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}