Creates a new mobile push credential
Creates a new mobile push credential for delivering push notifications to iOS or Android apps, and returns the created credential.
Request body
Example request
{
"alias": "LucyIosCredential",
"certificate": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----",
"private_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----"
}Response
Mobile push credential created
Example response
{
"data": {
"alias": "LucyCredential",
"certificate": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----",
"created_at": "2021-03-26T17:51:59.588408Z",
"id": "0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7",
"private_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----",
"project_account_json_file": {
"client_email": "account@customer.org",
"private_key": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja..."
},
"record_type": "push_credential",
"type": "ios",
"updated_at": "2021-03-26T17:51:59.588408Z"
}
}Changes
Changed in 2 of the 61 revisions of this API.4
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status422response-property-type-changed
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status422response-property-type-changed
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲