curl --request PUT \
--url https://{appid}.api-{region}.cometchat.io/v3/notifications/push/v1/providers/custom \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"isEnabled": true,
"webhookURL": "<string>",
"useBasicAuth": true,
"basicAuthUsername": "<string>",
"basicAuthPassword": "<string>"
}'
{
"data": {
"pushProviders": [
{
"basicAuthUsername": "user123",
"basicAuthPassword": "pass123",
"useBasicAuth": true,
"isEnabled": true,
"webhookURL": "https://trigger-push.example.com/cometchat"
}
]
}
}
Updates the custom provider for Push Notifications for a given app.
curl --request PUT \
--url https://{appid}.api-{region}.cometchat.io/v3/notifications/push/v1/providers/custom \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"isEnabled": true,
"webhookURL": "<string>",
"useBasicAuth": true,
"basicAuthUsername": "<string>",
"basicAuthPassword": "<string>"
}'
{
"data": {
"pushProviders": [
{
"basicAuthUsername": "user123",
"basicAuthPassword": "pass123",
"useBasicAuth": true,
"isEnabled": true,
"webhookURL": "https://trigger-push.example.com/cometchat"
}
]
}
}
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
A list of push notification's custom provider
The response is of type object
.