Creates a new webhook endpoint from provided data
curl --request POST \
--url https://api.rootly.com/v1/webhooks/endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "webhooks_endpoints",
"attributes": {
"name": "<string>",
"url": "<string>",
"secret": "<string>",
"event_types": [
"incident.created"
],
"enabled": true
}
}
}
'{
"data": {
"id": "<string>",
"type": "webhooks_endpoints",
"attributes": {
"name": "<string>",
"url": "<string>",
"event_types": [
"incident.created"
],
"secret": "<string>",
"enabled": true,
"created_at": "<string>",
"updated_at": "<string>",
"slug": "<string>"
}
}
}Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/webhooks/endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "webhooks_endpoints",
"attributes": {
"name": "<string>",
"url": "<string>",
"secret": "<string>",
"event_types": [
"incident.created"
],
"enabled": true
}
}
}
'{
"data": {
"id": "<string>",
"type": "webhooks_endpoints",
"attributes": {
"name": "<string>",
"url": "<string>",
"event_types": [
"incident.created"
],
"secret": "<string>",
"enabled": true,
"created_at": "<string>",
"updated_at": "<string>",
"slug": "<string>"
}
}
}