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

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

`PUT /api/access-controls/{id}`

## Path parameters

- `id` string, required

## Request body

- AccessControlModel
  - `id` string, nullable
  - `principalId` string, nullable
  - `scope` string, nullable
  - `role` RoleModel
    - `id` string, nullable
    - `name` string, nullable
    - `color` string, nullable
    - `description` 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)
