---
title: "Collect manages relations"
method: POST
path: "/v1/role/{parentRoleId}/manages/query"
tags: ["Manages"]
---

# Collect manages relations

`POST /v1/role/{parentRoleId}/manages/query`

Get all (or some of) the manages relations which start from a role of which a user is a member (either directly or indirectly).

## Path parameters

- `parentRoleId` union, required
  - integer
  - integer[]
  - '*'

## Request body

- object
  - `filter` object — Only return those manages relations which match each of the specified filters
    - `id` integer[] — Only return manages relations with one of the specified ids
    - `parentRoleId` integer[] — Only return manages relations with one of the specified parent role ids
    - `childRoleId` integer[] — Only return manages relations with one of the specified child role ids

## Response `200`

The manages relations which start from roles of which the user is a member and which match all the specified filters

- object
  - `manages` Def27[]
    - `id` integer, required — Id of the manages relation
    - `parentRoleId` integer, required — Id of the parent role
    - `childRoleId` integer, required — Id of the child role
    - `roleManagement` boolean, required — Indicates that the parent role has the right to attach the child role and its decendants to any other role.
    - `userManagement` boolean, required — Indicates that the parent role has the right to manage member relations for the child role and its decendants.
    - `viewManagement` boolean, required — Indicates that the parent role has the right to manage views relations for the child role and its decendants.
    - `deviceManagement` boolean, required — Indicates that the parent role has the right to manage monitors relations for the child role and its decendants.
    - `reportManagement` boolean, required — Indicates that the parent role has the right to manage "views report relations" for the child role and its decendants
    - `alarmManagement` boolean, required — Indicates that the parent role has the right to manage "alarm relations" for the child role and its decendants

## Other responses

- `400` — Invalidly formatted body
- `401` — Authentication required or token invalid

---

[API](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api.md) · [All operations](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eniris/eniris-metadata-telemetry-query-api/revisions/fe3723575e19/schema)
