跳转到内容
EN

重命名画册

PATCH /canvas/v1/collections/{collection_id}

Change the display name of a collection from collections.list without changing its id or canvas assignments. Names contain 1–100 characters after trimming and may match another collection name. This operation does not move canvases; use canvases.update with collection_id for that.

支持状态: supported

参数

名称位置类型必填说明
collection_idpathstringtrueCollection id from collections.create or collections.list, in the form col_ followed by 16 lowercase letters or digits; a display name is not an identifier.

请求体 (application/json)

必填: true

名称类型说明
namestringCollection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed."
}
}
}

响应

HTTP 200

The collection with its new name and updated timestamp; canvas membership is preserved.

application/json

名称 类型 说明
id string Assigned collection identifier; pass this as collection_id to retrieve, rename, delete or move canvases into the collection.
name string Collection display name, 1–100 characters after trimming surrounding whitespace; duplicate names within the organization are allowed.
canvas_count integer Number of non-deleted canvases currently assigned to this collection in the owning organization.
created_at string ISO 8601 timestamp recording when this collection was created.
updated_at string ISO 8601 timestamp of the latest collection rename; moving a canvas does not change this timestamp.