Create MFA Push Credential (HMS)
POST {{apiPath}}/environments/{{envID}}/applications/{{appID}}/pushCredentials
This sample uses the POST /environments/{{envID}}/applications/{{appID}}/pushCredentials
operation to create the push credentials for an Android native application that uses Huawei Mobile Services.
Prerequisites
See Application MFA Push Credentials for important overview information.
Create an application to get an
appID
. See Application Operations.
Request Body
{"type"=>"HMS", "clientId"=>"18990***63257248", "clientSecret"=>"B15B497V44E080EBE2C4DE4E74230***98549516B2M1A5C8F0FCD2C579A8EB14"}
RESPONSES
status: Created
{"_links":{"self":{"href":"https://api.pingone.eu/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/c2138f15-5bd2-4bf5-bf29-a3f819419664/pushCredentials/579a4e7d-5024-45d2-a4d7-397bd5b08bbc"},"environment":{"href":"https://api.pingone.eu/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"application":{"href":"https://api.pingone.eu/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applications/c2138f15-5bd2-4bf5-bf29-a3f819419664"}},"id":"579a4e7d-5024-45d2-a4d7-397bd5b08bbc","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"application":{"id":"c2138f15-5bd2-4bf5-bf29-a3f819419664"},"createdAt":"2022-11-14T11:22:40.490Z","updatedAt":"2022-11-14T11:22:40.490Z","clientId":"18990***63257248","type":"HMS"}