List parent organizations
GET/api/v1/orgs/{orgId}/parents
Retrieve the ancestors of an organization, up to the number of levels set by depth.
Parameters
orgId(Guid, required): ID of the organization whose parents you want.depth(int, optional, default=1): Number of parent levels to return aboveorgId. The default1returns only the direct parent.
Responses
200 OK: returns one path as an org tree, ordered from top to bottom. The top node is the highest ancestor reached withindepth. It is the root organization only whendepthreaches that far. Each node'schildrenholds only the next organization on the path down, and the last node is the requested organization itself. The example showsdepth=2.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error