Create Application Role Permission
POST {{apiPath}}/environments/{{envID}}/applicationRoles/{{appRoleID}}/permissions
The POST /environments/{{envID}}/applicationRoles/{{appRoleID}}/permissions
request associates an application resource permission with the application role specified in the request URL. The request body takes an application resource permission ID as the value for the id
property.
When creating a relationship between an application role and an application permission, you cannot change any existing application permission properties, nor can you create a new application permission.
For complete descriptions, see application-roles-permissions-data model.
These properties are read-only:
Property | Type? | Required? |
---|---|---|
action | String | N/A |
description | String | N/A |
id | String | N/A |
Note: The id
property returned by this POST request is the same ID as the application resource permission ID specified in the request body. This operation does not generate a unique ID in PingOne.
Request Body
{"id"=>"{{appResourcePermissionID}}"}
RESPONSES
status: OK
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applicationRoles/f1d45fa4-0c94-45f9-8872-47a38d4c1b72/permissions"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"id":"4c56f473-48c2-4256-ad8d-a6c15803447a","action":"read","resource":{"id":"3e8c0da7-8094-4554-9ba8-b61a7778b159","name":"accounts"},"description":"List documents"}