---
title: "Edit an existing role and the associated actions, delete the actions that are not in the new list"
method: PUT
path: "/api/roles/{id}"
tags: ["Role Management"]
---

# Edit an existing role and the associated actions, delete the actions that are not in the new list

`PUT /api/roles/{id}`

## Path parameters

- `id` string, required

## Request body

- RoleDetailsModel
  - `id` string, nullable
  - `name` string, nullable
  - `color` string, nullable
  - `description` string, nullable
  - `actions` string[], nullable

## Response `200`

OK

---

[API](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api.md) · [All operations](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cgi-fr/azure-iot-hub-portal-api/revisions/8f5ec4f45de1/schema)
