Rename collection
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.
Support: supported
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| collection_id | path | string | true | Collection 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. |
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 200
The collection with its new name and updated timestamp; canvas membership is preserved.
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. |