curl -X POST 'https://api.example.com/scope-hierarchy/batch' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
{
"parentScopeId": "scope_acme",
"childScopeId": "scope_engineering"
},
{
"parentScopeId": "scope_engineering",
"childScopeId": "scope_backend"
}
]'
[
{
"parentScopeId": "scope_acme",
"childScopeId": "scope_engineering"
},
{
"parentScopeId": "scope_engineering",
"childScopeId": "scope_backend"
}
]
Create multiple scope hierarchy edges in a single request
curl -X POST 'https://api.example.com/scope-hierarchy/batch' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
{
"parentScopeId": "scope_acme",
"childScopeId": "scope_engineering"
},
{
"parentScopeId": "scope_engineering",
"childScopeId": "scope_backend"
}
]'
[
{
"parentScopeId": "scope_acme",
"childScopeId": "scope_engineering"
},
{
"parentScopeId": "scope_engineering",
"childScopeId": "scope_backend"
}
]
curl -X POST 'https://api.example.com/scope-hierarchy/batch' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
{
"parentScopeId": "scope_acme",
"childScopeId": "scope_engineering"
},
{
"parentScopeId": "scope_engineering",
"childScopeId": "scope_backend"
}
]'
[
{
"parentScopeId": "scope_acme",
"childScopeId": "scope_engineering"
},
{
"parentScopeId": "scope_engineering",
"childScopeId": "scope_backend"
}
]
Was this page helpful?