Replace organization application roles
Replace all roles associated with the application in the organization with the given data.
Path parameters
-
The unique identifier of the organization.
-
The unique identifier of the application.
Body Required
-
An array of role IDs to replace existing roles.
Minimum length of each is
1
.
PUT /api/organizations/{id}/applications/{applicationId}/roles
curl \
-X PUT https://[tenant_id].logto.app/api/organizations/{id}/applications/{applicationId}/roles \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"organizationRoleIds":["string"]}'
Request examples
{
"organizationRoleIds": [
"string"
]
}