---
title: "Set Compute Capacity"
method: PUT
path: "/api/admin/compute-capacity"
tags: ["admin"]
---

# Set Compute Capacity

`PUT /api/admin/compute-capacity`

## Request

- Base URL: `https://api.omicos.cn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.omicos.cn/api/admin/compute-capacity`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- AdmissionPolicy
  - `instances` integer, required
  - `cpu` integer, required
  - `memory_mib` integer, required
  - `per_user` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-20** `ab224d6bccbc`: 1 info
  - the `instances` request property's min was decreased from `1.00` to `0.00`
- **2026-10-20** `19980e5944e6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omicos/apis/omicos-server/changes/api/admin/compute-capacity/put.md)

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc.dev/omicos/apis/omicos-server/revisions/42ce180a8cda?raw)
