Create Webhook Subscription
This API enables user to create a webhook subscription for receiving notifications.
Request to create webhook subscription.
Show optional properties
{
"name": "router-wh",
"description": "webhook to get router events",
"url": "https://play/in/e_y1sI1Dy8IvkYQcgYQy5yoHAtR7E/",
"vsafilter": {
"filterlist": [
{
"condition": "OR",
"propfilter": [
{
"propname": "ClassName",
"matchtype": "EQ",
"values": [
"Router"
]
}
]
}
]
}
}
{
"name": "string",
"description": "string",
"url": "string",
"headers": {
"headers": "string"
},
"vsafilter": {
"condition": "AND",
"filterlist": [
"Filter Object"
]
},
"disabled": false
}
unique name for subscription
Description about the webhook
A publicly accessible URL where user wants to receive notifications
Additional headers users wants to receive along with notification
The VSAFilter object defines how the filters has to be applied on queries.
Defines subscriptions is active or inactive.
Created
"SubscriptionModel Object"
Unique subscrpiton id .
Name of the subscription.
Id of the internal application .
Subscription is active or inactive
Subscription start time.
Subscription update time.
User who had created the subscription.
The type of subscription.
Detail description about the subscription.
The URL set to receive notifications.
Headers set for subscription.
The VSAFilter object defines how the filters has to be applied on queries.
Bad request
Conflict
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","description:"string","url:"string","vsafilter:"object"}' https://{api_host}/tcsa/api/webhooks/v1/subscriptions