curl --request PUT \
--url https://{appid}.api-{region}.cometchat.io/v3/notifications/push/v1/providers/apns \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"providerId": "<string>",
"keyId": "<string>",
"teamId": "<string>",
"bundleId": "<string>",
"p8KeyFilename": "<string>",
"p8Key": "<string>",
"includeContentAvailable": true,
"includeMutableContent": true,
"productionMode": true
}'
{
"data": {
"success": true
}
}
Update existing APNS provider for the given app.
curl --request PUT \
--url https://{appid}.api-{region}.cometchat.io/v3/notifications/push/v1/providers/apns \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"providerId": "<string>",
"keyId": "<string>",
"teamId": "<string>",
"bundleId": "<string>",
"p8KeyFilename": "<string>",
"p8Key": "<string>",
"includeContentAvailable": true,
"includeMutableContent": true,
"productionMode": true
}'
{
"data": {
"success": true
}
}
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
A list of push notification's settings
The response is of type object
.
Was this page helpful?