Create collection
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.
Support: supported
Request body (application/json)
Required: true
| Name | Type | Description |
|---|---|---|
| name | string | Collection 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." } }}Response
HTTP 201
The newly created empty collection; save its id to move canvases into it.
application/json
| Name | Type | Description |
|---|---|---|
| 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. |