Skip to content

Apply a Canvas drawing event

POST
/api/v1/collab/notes/{id}/events
curl --request POST \
--url https://example.com/api/v1/collab/notes/example/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "elements": [ "example" ], "font": "example" }'

Validate and save a bounded Canvas element event through the existing Note writer. The authenticated owner’s stable identity selects the room. Route: /api/v1/collab/notes/{id}/events. Inputs: id. Do not automatically replay this operation after an uncertain result.

id
required
string
Media typeapplication/json

Canvas event envelope shared by HTTP tools and the web room (§60, #976). A remove is an element with isDeleted: true and a newer version.

object
elements
required
Array
font

Shared text style; omitted during ordinary drawing edits (§60).

string | null
/^(hand-drawn|app)$/
Examplegenerated
{
"elements": [
"example"
],
"font": "example"
}

Canvas event saved

Canvas not found

Invalid Canvas event

Event limit reached