---
title: "创建镜像配置"
method: POST
path: "/api/v1/users/images"
tags: ["【用户】镜像管理"]
---

# 创建镜像配置

`POST /api/v1/users/images`

为当前用户创建新的镜像配置

## Request body

- DomainCreateImageReq
  - `image_name` string, required
  - `is_default` boolean
  - `remark` string

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainImage
    - `created_at` integer
    - `id` string
    - `is_default` boolean
    - `name` string
    - `owner` DomainOwner
      - `id` string
      - `name` string
      - `type` 'private' | 'public' | 'team'
    - `remark` string
  - `message` string

## Other responses

- `400` — 请求参数错误
- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/revisions/5a5929cb17f2/schema)
