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