You can manage the roles assigned to specific applications. When you assign a role to an application, you provide the attribute values required to identify the role and designate the role assignment scope for this application.

The sample shows the POST /environments/{environmentId}/applications/{applicationId}/roleAssignments operation to create the role assignment for the application in the specified environment resource.

The request URL identifies the environment ID and application ID. The request body specifies the role ID and the scope attribute values. The scope attribute provides the resource ID and resource type to designate the role assignment scope associated with this application. In this sample, the scope type is ORGANIZATION and the specific organization to which the role assignment scope applies is specified in the id value.