Skip to main content

agent_not_in_hierarchy

HTTP Status: 422 Category: Listing Lifecycle

When you see this

owner_user_id / agent_one_id / agent_two_id references a user that does not belong to the calling agency's hierarchy.

How to fix it

Confirm the user_id via GET /api/v1/users and verify the user rolls up to the caller's media_agency. Cross-agency agent assignments are rejected.

Example response

{
"error": {
"code": "agent_not_in_hierarchy",
"message": "owner_user_id / agent_one_id / agent_two_id references a user that does not belong to the calling agency's hierarchy.",
"hint": null,
"doc_url": "https://docs.valara.cloud/api-reference/errors/agent_not_in_hierarchy",
"request_id": "req_01H...",
"details": {
"errors": [],
"field_count": 0
}
}
}