Update provider credentials
Update credentials for a provider such as slack and FCM. providerId is required field. This API creates the deviceTokens or replaces the existing ones.
Path parameters
Headers
A header for idempotency purposes
Request body
Example request
{
"credentials": {
"webhookUrl": "https://example.com/webhook",
"channel": "general",
"deviceTokens": [
"token1",
"token2",
"token3"
],
"alertUid": "12345-abcde",
"title": "Critical Alert",
"imageUrl": "https://example.com/image.png",
"state": "resolved",
"externalUrl": "https://example.com/details"
}
}Response
OK
Example response
{
"channels": [
{
"credentials": {
"webhookUrl": "https://example.com/webhook",
"channel": "general",
"deviceTokens": [
"token1",
"token2",
"token3"
],
"alertUid": "12345-abcde",
"title": "Critical Alert",
"imageUrl": "https://example.com/image.png",
"state": "resolved",
"externalUrl": "https://example.com/details"
}
}
]
}Changes
Changed in 4 of the 12 revisions of this API.268
- ▲
removed the enum value
novu-agent-chatof the request propertyproviderIdrequest-property-enum-value-removed
- ●
added the new
novu-web-chatenum value to thechannels/items/providerIdresponse property for the response status200response-property-enum-value-added
- ○
added the new
novu-web-chatenum value to the request propertyproviderIdrequest-property-enum-value-added
- ○
removed the
novu-agent-chatenum value from thechannels/items/providerIdresponse property for the response status200response-property-enum-value-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the enum value
novu-web-chatof the request propertyproviderIdrequest-property-enum-value-removed
- ●
added the new
novu-agent-chatenum value to thechannels/items/providerIdresponse property for the response status200response-property-enum-value-added
- ○
added the new
novu-agent-chatenum value to the request propertyproviderIdrequest-property-enum-value-added
- ○
removed the
novu-web-chatenum value from thechannels/items/providerIdresponse property for the response status200response-property-enum-value-removed
- ▲
- ●
added the new
novu-web-chatenum value to thechannels/items/providerIdresponse property for the response status200response-property-enum-value-added
- ○
added the new
novu-web-chatenum value to the request propertyproviderIdrequest-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
lineenum value to thechannels/items/providerIdresponse property for the response status200response-property-enum-value-added
- ●
added the new
sendblueenum value to thechannels/items/providerIdresponse property for the response status200response-property-enum-value-added
- ●
added the new
webex-messagingenum value to thechannels/items/providerIdresponse property for the response status200response-property-enum-value-added
- ○
added the new
lineenum value to the request propertyproviderIdrequest-property-enum-value-added
- ○
added the new
sendblueenum value to the request propertyproviderIdrequest-property-enum-value-added
- ○
added the new
webex-messagingenum value to the request propertyproviderIdrequest-property-enum-value-added
- ●