---
title: "Edit RGW role"
method: PUT
path: "/api/rgw/roles"
tags: ["RGW"]
---

# Edit RGW role

`PUT /api/rgw/roles`

## Request body

- object
  - `max_session_duration` string, required
  - `role_name` string, required

## Response `200`

Resource updated.

- object

## Other responses

- `202` — Operation is still executing. Please check the task queue.
- `400` — Operation exception. Please check the response body for details.
- `401` — Unauthenticated access. Please login first.
- `403` — Unauthorized access. Please check your permissions.
- `500` — Unexpected error. Please check the response body for the stack trace.

## Changes

- **2026-06-16** `1c8b90eca98f` — 1 info
  - endpoint added
- **2026-06-10** `ba49ede1b529` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ceph/apis/ceph-rest-api/changes/api/rgw/roles/put.md)

---

[API](https://skmtc.dev/ceph/apis/ceph-rest-api.md) · [All operations](https://skmtc.dev/ceph/apis/ceph-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ceph/ceph-rest-api/revisions/1c8b90eca98f/schema)
