---
title: "PATCH /v1/users/{userId}/roles/{roleId}"
method: PATCH
path: "/v1/users/{userId}/roles/{roleId}"
---

# PATCH /v1/users/{userId}/roles/{roleId}

`PATCH /v1/users/{userId}/roles/{roleId}`

Update user role.

## Path parameters

- `userId` string, uuid, required
- `roleId` string, uuid, required

## Request body

- object
  - `enabled` boolean

## Response `204`

Updated the user role

- object[]
  - `id` string, uuid, required

## Other responses

- `400` — The request is invalid.
- `401` — The user is not authenticated.
- `403` — The user is not authorized to access this resource.
- `500` — An error occurred while processing the request.

---

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