---
title: "Adjust User Credits"
method: POST
path: "/admin/users/{user_id}/adjust-credits"
tags: ["admin"]
---

# Adjust User Credits

`POST /admin/users/{user_id}/adjust-credits`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/users/{user_id}/adjust-credits`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Add or deduct credits for a user's organization.

## Path parameters

- `user_id` string, uuid, required

## Request body

- CreditAdjustmentRequest
  - `amount` integer, required: Positive to add credits, negative to deduct
  - `reason` string, nullable: Admin note for this adjustment

## Response `200`

Successful Response

- CreditAdjustmentResponse
  - `success` boolean
  - `new_balance` integer, required
  - `change_amount` integer, required
  - `reason` string, required
  - `ledger_entry_id` string, uuid, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
