curl -X POST 'https://api.example.com/scope-hierarchy' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"parentScopeId": "scope_org",
"childScopeId": "scope_team"
}'
{
"id": "edge_123",
"parentScopeId": "scope_org",
"childScopeId": "scope_team"
}
Create a parent-child relationship between two scopes
curl -X POST 'https://api.example.com/scope-hierarchy' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"parentScopeId": "scope_org",
"childScopeId": "scope_team"
}'
{
"id": "edge_123",
"parentScopeId": "scope_org",
"childScopeId": "scope_team"
}
curl -X POST 'https://api.example.com/scope-hierarchy' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"parentScopeId": "scope_org",
"childScopeId": "scope_team"
}'
{
"id": "edge_123",
"parentScopeId": "scope_org",
"childScopeId": "scope_team"
}
Was this page helpful?