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"
}
Create a parent-child relationship between two scope types
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"
}
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"
}
Was this page helpful?