---
title: "Update user"
method: PUT
path: "/api/auth/users"
tags: ["Auth"]
---

# Update user

`PUT /api/auth/users`

## Request body

- object
  - `id` integer, required
  - `display_name` string
  - `role` 'admin' | 'operator' | 'viewer'
  - `email` string
  - `password` string

## Response `200`

User updated

- object
  - `user` User
    - `id` integer
    - `username` string
    - `display_name` string
    - `role` 'admin' | 'operator' | 'viewer'
    - `provider` string
    - `email` string
    - `avatar_url` string
    - `created_at` integer
    - `last_login_at` integer

## Other responses

- `400` — Invalid request
- `401` — Authentication required
- `403` — Insufficient permissions
- `404` — Resource not found

## Changes

- **2026-03-02** `39aff788d955` — 1 breaking, 13 info
  - the `user` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - …10 more

[Change history](https://skmtc.dev/builderz-labs/apis/mission-control-api/changes/api/auth/users/put.md)

---

[API](https://skmtc.dev/builderz-labs/apis/mission-control-api.md) · [All operations](https://skmtc.dev/builderz-labs/apis/mission-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/builderz-labs/mission-control-api/revisions/751f6c65ac77/schema)
