curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/push-notification/v1/upload-certificate-p8 \
--header 'Content-Type: multipart/form-data' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--form certificate=@example-file.txt
{
"data": {
"statusCode": 200,
"success": true,
"body": {
"success": true
},
"responseTime": 0.10614800453186035
}
}
Push notification : Upload a p8 Certificate
curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/push-notification/v1/upload-certificate-p8 \
--header 'Content-Type: multipart/form-data' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--form certificate=@example-file.txt
{
"data": {
"statusCode": 200,
"success": true,
"body": {
"success": true
},
"responseTime": 0.10614800453186035
}
}
AppID in which the extension has to be enabled/disabled
Upload Certificate
The response is of type object
.