---
title: "Updates a specific user's roles"
method: PUT
path: "/users/{id}"
tags: ["User"]
---

# Updates a specific user's roles

`PUT /users/{id}`

## Request body

- RoleArray
  - `roles` Role[]

## Response `200`

OK

- User — A user of the system (researcher, policy maker, etc)
  - `allOf` RoleArray
    - `roles` Role[]
  - `name` string, nullable — Full name of the user if provided by the OAuth provider
  - `email` string, email, required
  - `googleID` string — Unique identifier for the google account of the user

## Other responses

- `400` — Malformed request
- `403` — Forbidden
- `404` — Not found
- `422` — Unprocessable entity
- `500` — Internal server error

---

[API](https://skmtc.net/globaldothealth/apis/global-health-curator-service-api.md) · [All operations](https://skmtc.net/globaldothealth/apis/global-health-curator-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/globaldothealth/global-health-curator-service-api/revisions/5b1151265235/schema)
