跳转到内容
EN

创建画册

POST /canvas/v1/collections

Organize canvases by creating a one-level collection in your organization. Send a name of 1–100 characters after trimming; duplicate names are allowed. Each call creates a new collection, initially containing no canvases. Use canvases.update with its id as collection_id to move existing canvases into it. Collections cannot be nested and an organization can have at most 200.

支持状态: supported

请求体 (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 201

The newly created empty collection; save its id to move canvases into it.

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.