---
title: "Update User"
method: PATCH
path: "/api/admin/users/{user_id}"
tags: ["admin-users"]
---

# Update User

`PATCH /api/admin/users/{user_id}`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/admin/users/{user_id}`
- Auth: HTTP bearer

Update user plan, agent slots, or add credits.

## Path parameters

- `user_id` string, required

## Request body

- UserUpdateRequest: Update user settings (all fields optional).
  - `plan` string, nullable
  - `max_agent_slots` integer, nullable
  - `add_credits_cents` integer, nullable
  - `credit_target` string, nullable
  - `add_studio_credits` integer, nullable
  - `studio_credits_expires_in_days` integer, nullable
  - `set_studio_bonus_credits` number, nullable
  - `set_studio_credits` number, nullable
  - `set_studio_credits_expires_in_days` integer, nullable
  - `studio_credits_target` string, nullable
  - `grant_studio_plan` string, nullable
  - `grant_studio_billing_period` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
