---
title: "Update User Quota"
method: PUT
path: "/api/admin/credits/users/{user_id}"
tags: ["credits"]
---

# Update User Quota

`PUT /api/admin/credits/users/{user_id}`

## Request

- Base URL: `https://app.myriade.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.myriade.ai/api/admin/credits/users/{user_id}`
- Auth: none declared

Update a user's monthly quota. Admin only.

Validates that the sum of all user quotas does not exceed
the organisation's pool (monthly_allowance + carry_over).

## Path parameters

- `user_id` string, required

## Cookies

- `session` string, nullable

## Request body

- UpdateQuotaRequest
  - `monthly_quota` integer, required
  - `email` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myriade/apis/myriade-bi-api.md) · [All operations](https://skmtc.dev/myriade/apis/myriade-bi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myriade/apis/myriade-bi-api/revisions/15b7cb96ca80?raw)
