cURL
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.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Use custom provider
The webhook URL to be triggered for the respective events.
To enable basic auth for the URL
The username for Basic auth
The password for Basic auth
A list of push notification's custom provider
The response is of type object.
object
Was this page helpful?