For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/upload-fcm-credentials.md. Documentation index: https://www.pubnub.com/llms-full.txt.
Upload FCM credentials
POST/v2/keysets/:id/config/fcm
Uploads the FCM key file used to deliver push notifications to Android devices, and replaces the FCM key stored for the keyset. The request must contain every field. The response contains the stored metadata only: the key file is write-only and cannot be read back. If the upload is rejected, nothing is stored and the previously stored key stays in place. Storing FCM credentials also enables APNs for the keyset.
Request
Example
{
"filename": "string"
}Example
{
"statusCode": 0,
"error": "BadRequest",
"message": [
"string"
]
}Example
{
"statusCode": 0,
"error": "Unauthorized",
"message": [
"string"
]
}Example
{
"statusCode": 0,
"error": "Forbidden",
"message": [
"string"
]
}Example
{
"statusCode": 0,
"error": "NotFound",
"message": [
"string"
]
}Example
{
"statusCode": 0,
"error": "InternalError",
"message": [
"string"
]
}