Skip to main content
PATCH
/
notifications
/
v1
/
contact-details
Update contact details
curl --request PATCH \
  --url https://{appid}.api-{region}.cometchat.io/v3/notifications/v1/contact-details \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --header 'onBehalfOf: <onbehalfof>' \
  --data '{
  "email": "someone@example.com",
  "phno": "+919591128691"
}'
{
  "data": {
    "email": "someone@example.com",
    "phno": "+919591128691"
  }
}

Authorizations

apikey
string
header
required

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

Headers

onBehalfOf
string
required

UID of the user on whose behalf the action is performed.

Body

application/json
email
string

The user's email address

Example:

"someone@example.com"

phno
string

The user's phone number with country code (Ex: +1 for US, +91 for India, etc.)

Example:

"+919591128691"

Response

200 - application/json

A list of push notification's settings

data
any[]
meta
object
I