---
title: "Put Model Doc"
method: PUT
path: "/api/admin/llm/models"
tags: ["admin"]
---

# Put Model Doc

`PUT /api/admin/llm/models`

## 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/llm/models`
- Auth: none declared
- TypeScript: <https://skmtc.dev/omicos/apis/omicos-server/docs/api/admin/llm/models/put.ts> (a function with typed inputs; its response is checked against the schema)

Validate with the same parser the host serves from, then store a new
active version. Rolling back is saving an older version's document.

## Headers

- `authorization` string, nullable

## Request body

- ModelDocIn
  - `doc` object, required
  - `base_version` integer, nullable
  - `actor` string, required
  - `note` string

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-28** `7cd052c522d2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omicos/apis/omicos-server/changes/api/admin/llm/models/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/69de2edd485e?raw)
