---
title: "Update a user"
method: PUT
path: "/api/v1/users/{user_id}"
tags: ["Users"]
---

# Update a user

`PUT /api/v1/users/{user_id}`

## Request

- Base URL: `https://pcp.example.com`
- URL: `https://pcp.example.com/api/v1/users/{user_id}`
- Auth: HTTP bearer

## Path parameters

- `user_id` string, required

## Request body

- UpdateUserRequest: UpdateUserRequest schema
  - `name` string, required

## Response `200`

OK

- UserResponse: UserResponse schema
  - `email` string
  - `id` string, uuid
  - `is_service` boolean
  - `memberships` object[], nullable
    - `organization_id` string, uuid
    - `organization_name` string
  - `name` string

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `401`: Missing, invalid or expired credentials
- `403`: The caller may not do this
- `500`: Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1.md) - [All operations](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/revisions/2ac049494a01?raw)
