NotificationSubscriptions
Create a subscription
Creates a new subscription to the specified event types. Returns a unique subscription ID for a successful request. See Event Objects for example notification objects and descriptions of their fields. <br />Example Request
POST /NotificationSubscriptions/Http
{
"Url": "https://your-company.com/webhook-target-URL",
"Enabled": true,
"Name": "Subscription to new WOs",
"EventTypes": [
"WorkOrderCreated"
],
"Rules": {
"Trades": [
"GLASS"
],
"Categories": [
"MAINTENANCE"
]
}
}
post/NotificationSubscriptions/Http
Request
- Base URLhttps://sb2api.servicechannel.com/v3
- AuthOAuth 2Authorization codehttps://sb2login.servicechannel.com/oauth/authorizeToken URLhttps://sb2login.servicechannel.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
The subscription is created.
Changes
No recorded changes to this operation across all 1 revision of this API.