---
title: "Update a custom role"
method: PATCH
path: "/roles/{roleId}"
tags: ["roles"]
---

# Update a custom role

`PATCH /roles/{roleId}`

This operation will update a custom role.
Requires the privilege [`ROLES_WRITE`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Path parameters

- `roleId` string, required

## Request body

- UpdateCustomRoleRequest
  - `name` string
  - `description` string
  - `privileges` string[]

## Response `200`

- RoleResponse
  - `key` string
  - `name` string
  - `description` string
  - `type` 'Company' | 'Team'
  - `privileges` string[]

## Other responses

- `400` — Bad arguments
- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege: ROLES_WRITE

---

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