---
title: "Update a role with the given name"
method: PUT
path: "/roles/{roleName}"
tags: ["roles"]
---

# Update a role with the given name

`PUT /roles/{roleName}`

## Path parameters

- `roleName` string, required

## Query parameters

- `orgId` integer

## Request body

- UpdateRoleRequest
  - `description` string, required
  - `name` string
  - `permissions` string[]

## Response `204`

No Content - Role updated successfully

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `404` — Role not found
- `409` — Duplicate role name

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/versions/13316c9fe5ff/schema)
