This samples shows the POST /environments/{environmentId}/applications/{applicationId}/pushCredentials operation to create the push credentials for an Android native application in the specified environment resource.

The request URL identifies the environment ID and application ID. The request body specifies the type and the key attribute values.

Since keyis considered credentials, this field can be created with a POST request and updated with a PUT request, but it is not returned by a GET request.