PUT
/
notifications
/
email
/
v1
/
providers
/
custom
Update Custom Provider for Email Notifications
curl --request PUT \
  --url https://{appid}.api-{region}.cometchat.io/v3/notifications/email/v1/providers/custom \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "isEnabled": true,
  "useStoredEmailID": true,
  "webhookURL": "<string>",
  "useBasicAuth": true,
  "basicAuthUsername": "<string>",
  "basicAuthPassword": "<string>"
}'
{
  "data": {
    "basicAuthUsername": "user889",
    "basicAuthPassword": "pass122",
    "isEnabled": true,
    "useBasicAuth": true,
    "useStoredEmailID": false,
    "webhookURL": "https://trigger-email.example.com/cometchat"
  }
}

Authorizations

apikey
string
header
required

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

Body

application/json

Response

200 - application/json

Update the push notification's Email custom provider

The response is of type object.