Skip to main content
POST
http://localhost:3000
/
scope-hierarchy
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"
}

Request Body

parentScopeId
string
required
The parent scope ID
childScopeId
string
required
The child scope ID

Response

Returns the created hierarchy edge object.
The scope types must have a valid type hierarchy relationship for this edge to be created.
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"
}