---
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

## Changes

- **2026-09-26** `74c8636645b3` — 1 info
  - the `last_reset_datetime` response's property default value changed from `2026-09-25T07:26:00.880477Z` to `2026-09-26T03:02:06.214746Z` for the status `200`
- **2026-09-25** `949a8e67b97c` — 1 info
  - the `last_reset_datetime` response's property default value changed from `2026-09-24T07:05:36.683296Z` to `2026-09-25T07:26:00.880477Z` for the status `200`
- **2026-09-24** `ec53b2b9f0c6` — 1 info
  - the `last_reset_datetime` response's property default value changed from `2026-09-23T01:41:44.846959Z` to `2026-09-24T07:05:36.683296Z` for the status `200`
- **2026-09-23** `c493ba7d852b` — 1 info
  - the `last_reset_datetime` response's property default value changed from `2026-09-23T01:41:44.842570Z` to `2026-09-23T01:41:44.846959Z` for the status `200`
- **2026-09-23** `a13f5af3ab63` — 1 info
  - the `last_reset_datetime` response's property default value changed from `2026-09-22T01:20:24.664514Z` to `2026-09-23T01:41:44.842570Z` for the status `200`

[Full history](https://skmtc.dev/toolhouse/apis/toolhouse-api/changes/backoffice/users/:user_id/monthly_credit_allowance/put.md)

---

[API](https://skmtc.dev/toolhouse/apis/toolhouse-api.md) · [All operations](https://skmtc.dev/toolhouse/apis/toolhouse-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolhouse/apis/toolhouse-api/revisions/74c8636645b3?raw)
