References¶
Webhook Self Enrolment¶
We have introduced a new endpoint to allow you to manage which webhooks you have enabled.
POST /v1/webhooks
Request¶
| Field | Type | Description | Required |
|---|---|---|---|
| webhooks | String Array | Array of the webhooks to enable/disable. Options are: INCIDENT, BOOKING |
Yes |
| enabled | boolean | Whether to enable or disable the selected webhooks. | Yes |
Sample Request¶
{
"webhooks": ["INCIDENT", "BOOKING"],
"enabled": true
}
Response¶
| Field | Type | Description |
|---|---|---|
| webhookStatuses | Array | Details the updated statuses of the modified webhooks. |
HTTP 200 - OK¶
{
"webhookStatuses": [
{
"webhook": "BOOKING",
"enabled": true
},
{
"webhook": "INCIDENT",
"enabled": true
}
]
}