Skip to main content
PUT
/
notifications
/
push
/
v1
/
providers
/
custom
Update Custom Provider for Push Notifications
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"
      }
    ]
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Body

application/json
isEnabled
boolean

Use custom provider

webhookURL
string

The webhook URL to be triggered for the respective events.

useBasicAuth
boolean

To enable basic auth for the URL

basicAuthUsername
string

The username for Basic auth

basicAuthPassword
string

The password for Basic auth

Response

200 - application/json

A list of push notification's custom provider

The response is of type object.

I