---
title: "Set Usage"
method: PUT
path: "/admin/billing/sandbox/accounts/{user_id}/usage"
tags: ["admin", "billing"]
---

# Set Usage

`PUT /admin/billing/sandbox/accounts/{user_id}/usage`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/admin/billing/sandbox/accounts/{user_id}/usage`
- Auth: OAuth 2
  - Password
  - Token URL: `api/login`

## Path parameters

- `user_id` string, required

## Request body

- SandboxUsageRequest: Left out: unchanged. A ratio is of the budget; above 1 is allowed.
  - `day_ratio` number, nullable
  - `week_ratio` number, nullable
  - `copy_reviews_month` integer, nullable
  - `recommended_sessions_week` integer, nullable

## Response `204`

Successful Response

## Other responses

- `404`: Resource not found
- `422`: Validation Error

## Changes

> 106 revisions in range; 1 not diffed.

- **2026-11-12** `0af74c49ba7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/admin/billing/sandbox/accounts/:user_id/usage/put.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) - [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) - [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/de6afcc9656f?raw)
