---
title: "Update a role"
method: PUT
path: "/permissions/v1/roles/{role.id}"
tags: ["Roles"]
---

# Update a role

`PUT /permissions/v1/roles/{role.id}`

## Request

- Base URL: `https://api.mitti.com`
- URL: `https://api.mitti.com/permissions/v1/roles/{role.id}`
- Auth: HTTP bearer

Replaces an existing role's name, description, permissions and structure type scope. The role is fully replaced from the request body. `name`, `description` and `structure_type_ids` are required, and omitting `permissions` clears every permission from the role.

## Path parameters

- `role.id` string, required

## Request body

- S12StructuresRolesV1RolesServiceUpdateRoleBody
  - `role` object: The role to update
    - `name` string: The role title.
    - `description` string: The role description.
    - `permissions` S12StructuresRolesV1PermissionType[]: The list of permissions enabled for this role.
    - `structure_type_ids` string[]: List of structure type IDs associated with the role. Limited to 100.
    - `is_default` boolean: Whether this role is a default role. This field is output only and cannot be edited.
    - `user_count` integer: The number of users assigned to this role. This field is output only and cannot be edited.
    - `created_at` string, date-time: The date created timestamp of a role.
    - `modified_at` string, date-time: The date last modified timestamp of a role.

## Response `200`

A successful response.

- S12StructuresRolesV1UpdateRoleResponse

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `eb6bb843bf18`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/safetyculture/apis/safetyculture-api/changes/permissions/v1/roles/:role.id/put.md)

---

[API](https://skmtc.dev/safetyculture/apis/safetyculture-api.md) - [All operations](https://skmtc.dev/safetyculture/apis/safetyculture-api/llms.txt) - [OpenAPI document](https://skmtc.dev/safetyculture/apis/safetyculture-api/revisions/eb6bb843bf18?raw)
