create_whiteboard
Make a whiteboard in a space: an endless shared canvas of shapes, sticky notes, text, arrows, lines, pen strokes, pictures (yours drawn as SVG, or from add_asset) and sections — for brainstorms, retros, timelines, maps of ideas, explainers and plans that people rearrange together, with everyone's cursor live. Give its elements back to front, sections first. Read guide topic "whiteboards" first; see it with render_whiteboard.
Parameters
space_idstringrequiredtitlestringrequiredelementsobject[]Show child attributes
idstringtypestringrequiredshape, note, text, arrow, line, pen, image, section.xnumberynumberwnumberhnumbershapestringrectangle, rounded, ellipse, diamond.textstringsizestring | numberalignstringleft, center, right.colorstringstrokestringdashedbooleanwrapnumberfromstring | any[]tostring | any[]labelstringheadsstringend, both, none.pointsnumber[]widthnumbersrcstringsvgstringtitlestringsectionstringlinkstringlockedbooleanread_whiteboard
A whiteboard as it is now, people's drawing included: its elements back to front, each with its id, type, place (x, y, w, h), words, colours, the section it is in, what an arrow joins, and who made it (by), plus the board's bounds and checks. People move and change things: read before every change.
Parameters
item_idstringrequiredupdate_whiteboard
Change a whiteboard. Any of: title; add (new elements, written like create_whiteboard's, drawn on top); change (by id: only the fields given change — moving a section moves what is in it, moving a shape takes its arrows along; order front or back); remove (by id: an element goes with its words and the arrows joined to it). Applied in that order, all or nothing, while people may be working on the board: only what you name changes. read_whiteboard first for the ids.
Parameters
item_idstringrequiredtitlestringaddobject[]Show child attributes
idstringtypestringrequiredshape, note, text, arrow, line, pen, image, section.xnumberynumberwnumberhnumbershapestringrectangle, rounded, ellipse, diamond.textstringsizestring | numberalignstringleft, center, right.colorstringstrokestringdashedbooleanwrapnumberfromstring | any[]tostring | any[]labelstringheadsstringend, both, none.pointsnumber[]widthnumbersrcstringsvgstringtitlestringsectionstringlinkstringlockedbooleanchangeobject[]Show child attributes
idstringrequiredxnumberynumberwnumberhnumbershapestringrectangle, rounded, ellipse, diamond.textstringsizestring | numberalignstringleft, center, right.colorstringstrokestringdashedbooleanwrapnumberfromstring | any[]tostring | any[]labelstringheadsstringend, both, none.pointsnumber[]widthnumbersrcstringsvgstringtitlestringsectionstringlinkstringlockedbooleanorderstringfront, back.removestring[]render_whiteboard
See a whiteboard as people do: a screenshot of the whole board fitted to the view (or of one area), with checks — things lying on each other, things sticking out of their section, boxes made taller to fit their words, pictures that did not load — and errors the page hit.
Parameters
item_idstringrequiredareaobjectShow child attributes
xnumberrequiredynumberrequiredwnumberrequiredhnumberrequired