---
title: "Updating a Role"
method: PUT
path: "/v1/roles/{roleId}.json"
tags: ["roles"]
---

# Updating a Role

`PUT /v1/roles/{roleId}.json`

Update a role

## Path parameters

- `roleId` integer, required

## Query parameters

- `token` string, required

## Request body

- object
  - `name` string

## Response `200`

successful operation

- object
  - `Sucess` string

## Other responses

- `405` — Invalid input

## Changes

- **2017-05-25** `5b98cb916342` — 4 info
  - api operation id `editRole` removed and replaced with ``
  - added the non-success response with the status `405`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `404`
- **2016-04-26** `5d7a4c3eadce` — 4 info
  - api operation id `editRole` was added
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - removed the non-success response with the status `405`

[Change history](https://skmtc.dev/restyaplatform/apis/restyaboard/changes/v1/roles/:roleId.json/put.md)

---

[API](https://skmtc.dev/restyaplatform/apis/restyaboard.md) · [All operations](https://skmtc.dev/restyaplatform/apis/restyaboard/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/restyaplatform/restyaboard/revisions/bfc753befdbe/schema)
