Excalidraw+ API

Update collection

Update the metadata of an existing collection by its ID.

You can update the collection name or other editable fields.

Use cases:

  • Renaming collections
  • Managing collections in admin dashboards
  • Bulk updating collection metadata
PATCH
/api/v1/collections/{collectionId}

Authorization

apiKey
headerAuthorizationBearer <Bearer>

The API will use the Authorization: Bearer <your-key> header for requests.

Path Parameters

collectionId*string

Collection ID. Personal API keys may use 'private' for the key owner's virtual private collection. Workspace API keys cannot access private collections.

Request Body

application/json
  1. body
name*string

Response Body

This response returns the details of the requested collection.

application/json
  1. response

This response returns the details of the requested collection.

id*string
isDefault?boolean
workspace*string
creator*string|null
updater?string|null
teams*array<string>|null
created*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
sortOrder?string|null
name*string
updated*|
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
isDeleted?boolean
emoji?|null
deletedAt?number
Example Request
curl -X PATCH 'https://api.excalidraw.com/api/v1/collections/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "id": "string",  "isDefault": true,  "workspace": "string",  "creator": "string",  "updater": "string",  "teams": [    "string"  ],  "created": "2019-08-24T14:15:22Z",  "sortOrder": "string",  "name": "string",  "updated": "2019-08-24T14:15:22Z",  "isDeleted": true,  "emoji": {    "id": "string",    "native": "string",    "unified": "string"  },  "deletedAt": 0}

Last updated on