Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Headers
UID of the user on whose behalf the action is performed.
Body
application/json
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"
  }
}Updates the contact details like Email ID and Phone number for a given user.
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"
  }
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
UID of the user on whose behalf the action is performed.
Was this page helpful?