This sample shows the POST /environments/{environmentId}/applications/{applicationId}/pushCredentials operation to create the push credentials for an iOS mobile 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. When the type is “APNS”, the request also specifies the teamId and the token attribute values.

Since key, teamId and token are considered credentials, these fields can be created with a POST request and updated with a PUT request, but are not returned by a GET request.