Skip to main content
PATCH
/
notifications
/
v1
/
preferences
/
timezone
Update timezone
curl --request PATCH \
  --url https://{appId}.api-{region}.cometchat.io/v3/notifications/v1/preferences/timezone \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "timezone": "Asia/Tokyo"
}
'
{
  "data": {
    "timezone": "Asia/Kolkata"
  }
}
For the complete error reference, see Error Guide.

Authorizations

apikey
string
header
required

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

Query Parameters

uid
string
required

(Required) UID

Body

application/json
timezone
string

Input a valid Timezone Identifier. Eg: Asia/Tokyo

Example:

"Asia/Tokyo"

Response

200 - application/json

A list of push notification's settings

data
any[]
meta
object