---
title: "Update User Credits Request"
method: PUT
path: "/backoffice/users/{user_id}/monthly_credit_allowance"
tags: ["Backoffice"]
---

# Update User Credits Request

`PUT /backoffice/users/{user_id}/monthly_credit_allowance`

Update User Credits Allowance
This endpoint is used to increase or decrease the monthly credit allowance for a user.
It is used to give users free credits every month.
Note: if the user upgrades or downgrades, the credit allowance will be reset to the default value.

## Path parameters

- `user_id` string, required

## Request body

- UpdateMonthlyCreditAllowance — Update Monthly Credit Allowance
  - `amount` integer, required

## Response `200`

User credit allowance updated successfully

- AgentExecutionCredits
  - `user_id` string, required
  - `total_executions` integer, required
  - `allowed_monthly_executions` integer, required
  - `active_reserved_executions` integer
  - `available_executions` integer
  - `reset_datetime` string, date-time, required
  - `last_reset_datetime` string, date-time

## Other responses

- `404` — User not found
- `422` — Validation Error
- `500` — Internal server error

---

[API](https://skmtc.net/toolhouse/apis/toolhouse-api.md) · [All operations](https://skmtc.net/toolhouse/apis/toolhouse-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/toolhouse/toolhouse-api/revisions/db859bdfdacc/schema)
