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