curl -X GET 'https://api.example.com/roles/by-scope/scope_123' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "role_1",
"name": "Admin",
"description": "Full administrative access",
"scopeId": "scope_123"
},
{
"id": "role_2",
"name": "Viewer",
"description": "Read-only access",
"scopeId": "scope_123"
}
]
Retrieve all roles defined within a specific scope
curl -X GET 'https://api.example.com/roles/by-scope/scope_123' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "role_1",
"name": "Admin",
"description": "Full administrative access",
"scopeId": "scope_123"
},
{
"id": "role_2",
"name": "Viewer",
"description": "Read-only access",
"scopeId": "scope_123"
}
]
curl -X GET 'https://api.example.com/roles/by-scope/scope_123' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "role_1",
"name": "Admin",
"description": "Full administrative access",
"scopeId": "scope_123"
},
{
"id": "role_2",
"name": "Viewer",
"description": "Read-only access",
"scopeId": "scope_123"
}
]
Was this page helpful?