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

# Update User

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

Update user profile information.

## Path parameters

- `user_id` string, required

## Request body

- UserUpdateRequest
  - `full_name` string, nullable — Full name
  - `company_name` string, nullable — Company name
  - `country` string, nullable — Country
  - `tier` 'tier1' | 'tier2' | 'tier3' | 'tier4' | 'tier5'
  - `account_type` 'user' | 'enterprise' — Account type: determines billing mode and allowed API key scopes. - USER: Prepaid wallet billing, can create user-scope keys - ENTERPRISE: Postpaid invoice billing, can create enterprise-scope keys
  - `current_remaining_credits` number, nullable — Set user balance/credits (must be finite, non-negative, max $100k)

## Response `200`

Successful Response

- MessageResponse
  - `success` boolean
  - `message` string, required

## Other responses

- `403` — Forbidden
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/compresr/apis/compresr-platform-api.md) · [All operations](https://skmtc.net/compresr/apis/compresr-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/compresr/compresr-platform-api/versions/93ee959dfa51/schema)
