Developer docs · Problems
Invalid project hierarchy
HTTP 422 · https://impartire.com/problems/invalid-hierarchy
What it means
The org's project hierarchy rules do not allow this: the project type is not allowed under its parent's type (or at the root, or above a sub-project's type), or the tree would be more than five levels deep. detail names the rule; the rules are set in the app.
What to do
Pick a project type the org's rules allow at that place, or another parent. The rules (which type may hold which) are set in the app under Projects → Project Hierarchy; an untyped project may go anywhere.
Example
Sent as application/problem+json with status 422. detail varies with the request; branch on type.
{
"type": "https://impartire.com/problems/invalid-hierarchy",
"title": "Invalid project hierarchy",
"status": 422,
"detail": "The org's hierarchy rules do not allow a project of type \"Episode\" at the root. Give it a parent_id whose type may hold it, or pick another type.",
"instance": "/api/v1/projects",
"request_id": "01JB8Z5W6Q4N3X2V1T0S9R8P7M"
}