Scan parent-link integrity
Scans every non-deleted work item in one project and reports parent-link invariant violations: missing or cross-project parents, workstream mismatches, circular references, and max-nesting-depth breaches. Read-only — it never repairs a link; pair with the reparent command to fix findings.
GET
/api/v1/work-items/parent-integrityAuthorization
work-items:readapi key scoperequiredRequired scope when calling with an API key.
Query parameters
project_idstringrequiredProject ID in the resolved workspace
Example: proj_abc123
Request
curl -X GET "https://www.digitalstack360.com/api/v1/work-items/parent-integrity?project_id=proj_abc123" \
-H "Authorization: Bearer $DS_API_KEY"Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.
Response
200 OK
{
"data": [
{
"ticket_id": "work_01k2...",
"ticket_key": "DS-42",
"project_id": "proj_abc123",
"parent_ticket_id": "work_01k9...",
"parent_key": "DS-7",
"kinds": [
"workstream_mismatch"
]
}
],
"meta": {
"count": 1
}
}Errors
401
missing_authNo credentials provided
401
invalid_api_keyAPI key is invalid or revoked
403
scope_insufficientKey lacks work-items:read scope
400
invalid_requestproject_id is required
404
not_foundProject does not exist in the resolved workspace