Link scopes to role
Link a list of API resource scopes (permissions) to a role. The original linked scopes will be kept.
Path parameters
-
The unique identifier of the role.
POST /api/roles/{id}/scopes
curl \
-X POST https://[tenant_id].logto.app/api/roles/{id}/scopes \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"scopeIds":["string"]}'
Request examples
{
"scopeIds": [
"string"
]
}
Response examples (201)
[
{
"tenantId": "string",
"id": "string",
"resourceId": "string",
"name": "string",
"description": "string",
"createdAt": 42.0
}
]