Update a webhook endpoint
PATCH
/v1/webhook-endpoints/{id}
const url = 'https://api.staging.heliumid.io/v1/webhook-endpoints/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"example","description":"example","eventTypes":["case.submitted"],"enabled":true}'};
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.staging.heliumid.io/v1/webhook-endpoints/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "example", "description": "example", "eventTypes": [ "case.submitted" ], "enabled": true }'Change its URL, description, event types, or enable/disable it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
string
description
string
eventTypes
Array<string>
enabled
boolean
Responses
Section titled “Responses”The updated endpoint
Media typeapplication/json
object
id
required
string
url
required
string
description
required
string
eventTypes
required
Array<string>
enabled
required
boolean
secretHint
required
string
createdAt
required
string | null
updatedAt
required
string | null
Example generated
{ "id": "example", "url": "example", "description": "example", "eventTypes": [ "example" ], "enabled": true, "secretHint": "example", "createdAt": "example", "updatedAt": "example"}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string
Example generated
{ "error": { "code": "example", "message": "example", "correlationId": "example" }}Not authenticated
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string
Example generated
{ "error": { "code": "example", "message": "example", "correlationId": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string
Example generated
{ "error": { "code": "example", "message": "example", "correlationId": "example" }}