Assign API resource roles to the specified application. The API resource roles will be added to the existing API resource roles. Role IDs that are already assigned to the application are silently ignored.
POST
/api/applications/{applicationId}/roles
curl \
--request POST 'https://[tenant_id].logto.app/api/applications/{applicationId}/roles' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"roleIds":["string"]}'
Request examples
{
"roleIds": [
"string"
]
}
Response examples (201)
{
"roleIds": [
"string"
],
"addedRoleIds": [
"string"
]
}