---
title: "Edit Role"
method: POST
path: "/client/roles/{roleId}"
tags: ["client", "roles"]
---

# Edit Role

`POST /client/roles/{roleId}`

## Path parameters

- `roleId` integer, required

## Request body

- RolePayloadSchema
  - `name` string, required
  - `description` string, nullable
  - `permissions` Permissions[], required
  - `allProjects` boolean
  - `projects` integer[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/openreplay/apis/fastapi.md) · [All operations](https://skmtc.net/openreplay/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openreplay/fastapi/versions/4686e8023dc8/schema)
