修改镜像备注
此接口用于修改本地镜像的备注信息。
接口描述
通信协议:HTTP
URL:PUT /api/v1/image
传参方式:body
请求参数
字段名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
description | string | 是 | 描述信息 |
id | string | 是 | 镜像 ID |
响应参数
响应体 data 字段类型为 boolean,true 表示存在,false 表示不存在。
请求示例
curl --location --request PUT 'http://localhost:3001/image' \
--header 'Content-Type: application/json' \
--data-raw '{
"id":"5df6d066-192d-49e5-8ceb-5cfcf5a2c8fa",
"description":"jsre"
}'
响应示例
{
"status": 200,
"message": "success",
"fieldErrors": null,
"data": true
}
错误码
具体请参见 错误码说明。