---
title: "Update an existing manages relation"
method: PUT
path: "/v1/role/{parentRoleId}/manages/{managesId}"
tags: ["Manages"]
---

# Update an existing manages relation

`PUT /v1/role/{parentRoleId}/manages/{managesId}`

## Request

- Base URL: `https://api.eniris.be` (the document declares no server; this is the origin it was published from)
- URL: `https://api.eniris.be/v1/role/{parentRoleId}/manages/{managesId}`
- Auth: HTTP bearer

Update an existing manages relation. A user can only execute this action if he is a member of an autorizing role which has (direct or indirect) roleManagement rights for the parent role of the manages relation

## Path parameters

- `parentRoleId` integer, required
- `managesId` integer, required

## Request body

- Def26
  - `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

## Response `200`

The updated manages relation

- 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 or query parameter
- `401`: Authentication required or token invalid
- `403`: User does not have appropriate role management rights

---

[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.dev/eniris/apis/eniris-metadata-telemetry-query-api/revisions/93c02ba1e0d2?raw)
