Assign roles to applications in an organization
Assign roles to applications in the specified organization.
Responses
-
Roles were assigned to the applications successfully.
-
Bad Request
-
Unauthorized
-
Forbidden
-
At least one of the IDs provided is not valid. For example, the organization ID, application ID, or organization role ID does not exist; the application is not a member of the organization; or the role type is not assignable to the application.
POST
/api/organizations/{id}/applications/roles
curl \
--request POST 'https://[tenant_id].logto.app/api/organizations/{id}/applications/roles' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"applicationIds":["string"],"organizationRoleIds":["string"]}'
Request examples
{
"applicationIds": [
"string"
],
"organizationRoleIds": [
"string"
]
}