Skip to main content
POST
http://localhost:3000
/
scope-type-hierarchy
curl -X POST 'https://api.example.com/scope-type-hierarchy' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "parentTypeId": "type_org",
    "childTypeId": "type_team"
  }'
{
  "id": "type_edge_123",
  "parentTypeId": "type_org",
  "childTypeId": "type_team"
}

Request Body

parentTypeId
string
required
The parent scope type ID
childTypeId
string
required
The child scope type ID

Response

Returns the created type hierarchy edge object.
This defines which scope types can be parents of other scope types. For example, an “Organization” type can be a parent of a “Team” type.
curl -X POST 'https://api.example.com/scope-type-hierarchy' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "parentTypeId": "type_org",
    "childTypeId": "type_team"
  }'
{
  "id": "type_edge_123",
  "parentTypeId": "type_org",
  "childTypeId": "type_team"
}