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

# POST /v1/users/{userId}/roles

`POST /v1/users/{userId}/roles`

Create user roles.

## Path parameters

- `userId` string, uuid, required

## Request body

- object
  - `role` 'ADMIN' | 'ASSESSMENT' | 'ACCESSOR' | 'QUALIFYING_ACCESSOR', required — Role of the user.
  - `organisationId` string, uuid, required — Id of the organisation.
  - `unitIds` string[], required — Ids of the organisation units.

## Response `201`

The created roles.

- object[]
  - `id` string, uuid, required — The role id.

## 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-england/apis/admin-api-nhs-innovation-service.md) · [All operations](https://skmtc.net/nhs-england/apis/admin-api-nhs-innovation-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nhs-england/admin-api-nhs-innovation-service/revisions/e3ae090557ab/schema)
