---
title: "Update the roles for a user"
method: PUT
path: "/v1/users/{userId}/roles"
tags: ["Users"]
---

# Update the roles for a user

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

## Parameters

- `#/paths/~1v1~1organizations~1%7BorganizationId%7D~1users~1%7BuserId%7D/delete/parameters/1` — unresolved $ref

## Request body

- Schema — unresolved $ref

## Response `200`

Responding with updated list of user roles

- Schema — unresolved $ref

## Other responses

- `401` — Invalid token
- `403` — Caller is not authorized to perform this action
- `404` — User not found

---

[API](https://skmtc.net/tetrascience/apis/tetra-data-lake.md) · [All operations](https://skmtc.net/tetrascience/apis/tetra-data-lake/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tetrascience/tetra-data-lake/revisions/0205e2bace53/schema)
