Create Webhook
Create a specific webhook
Request
URI
POST
https://{api_host}/api/v2/webhook
COPY
Request Body
Example Body:
{ "description": "WebHook Description", "template": "POST Body -- Mustache syntax", "title": "WebHook Title", "triggers": [ "ALERT_OPENED" ], "recipient": "http://example.com", "customHttpHeaders": {}, "contentType": "text/plain" }
Notificant2
of type(s)
application/json
Optional
Show optional properties
{
"method": "string",
"description": "string",
"title": "string",
"triggers": [
{}
],
"template": "string",
"recipient": "string"
}
{
"method": "string",
"id": "string",
"contentType": "string",
"description": "string",
"createdEpochMillis": 0,
"updatedEpochMillis": 0,
"title": "string",
"customerId": "string",
"triggers": [
"string"
],
"template": "string",
"recipient": "string",
"customHttpHeaders": {
"customHttpHeaders": "string"
},
"emailSubject": "string",
"isHtmlContent": false,
"routes": [
{
"method": "string",
"target": "string",
"filter": "string"
}
],
"creatorId": "string",
"updaterId": "string"
}
Responses
200
successful operation
Returns
ResponseContainerNotificant
of type(s)
application/json
"ResponseContainerNotificant Object"
object
status
Required
status
object
response
Optional
Wavefront notificant entity
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"description:"string","method:"string","recipient:"string","template:"string","title:"string","triggers":["string"]}' https://{api_host}/api/v2/webhook