NotificationWebHooks
Update a webhook
Updates the specified webhook by setting the values of the parameters passed. <br />Example Request
PUT /NotificationWebHooks/{id}
{
"Subscriptions": [
{
"Id": 1111,
"Name": "Subscription to new WOs",
"EventTypes": [
"WorkOrderCreated"
],
"Rules": {
"Trades": [
"GLASS"
],
"Categories": [
"MAINTENANCE"
],
"Statuses": [
"COMPLETED/CONFIRMED"
]
}
}
],
"Id": 1,
"Enabled": true,
"Name": "New WO webhook",
"Description": "I want to receive notifications when new WOs of GLASS trade and MAINTENANCE category are created.",
"Url": "https://your-company.com/webhook-target-URL"
}
put/NotificationWebHooks/{id}
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.
Path parameters
idinteger required
The unique ID of the webhook to update.
Request body
Response
The webhook is updated, and the response is intentionally blank.
Changes
No recorded changes to this operation across all 1 revision of this API.