---
title: "更新镜像配置"
method: PUT
path: "/api/v1/users/images/{id}"
tags: ["【用户】镜像管理"]
---

# 更新镜像配置

`PUT /api/v1/users/images/{id}`

更新指定的镜像配置信息

## Path parameters

- `id` string, required

## Request body

- DomainUpdateImageReq
  - `image_name` string
  - `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` — 未授权
- `404` — 资源不存在
- `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/versions/5a5929cb17f2/schema)
