Add a record to an item
POST /boards/{boardId}/items/{itemId}/records
Adds one thing to an item that holds many: a card to a kanban (in the column it names), a task to a gantt, an event to a timeline or calendar, an item to a checklist, a line to a document, a value to a chart, a row to a spreadsheet. Send the same key again and that record is updated and moved instead of added twice; without a key, a record identical to one already there changes nothing. Everything else in the item stays as it is. What a type takes is record on GET /item-types/{type}; types without it answer 409.
Authorization
AuthorizationstringheaderrequiredBearer <key>. The key needs boards:write scope. Create and manage keys in the developer console, or use an OAuth app to act for other people; what each scope unlocks is on the scopes page.
Path parameters
boardIdstringpathrequireditemIdstringpathrequiredBody
callbackUrlstringOptional. When the job this request starts finishes or fails, a short body is POSTed here once: { eventId, status, boardId, boardUrl, imageUrl }, where status is succeeded or failed and imageUrl is a picture of what the job drew, or null. Signed with the workspace's callback secret (GET /webhooks/callback-secret). https to a public host. The full job is on GET /jobs/{jobId}.
recordItemRecordrequiredSelected by the type of the item it is added to. One schema per type that takes records.
Response
idstringtypestringAn ItemType, or other for an editor widget the API has no type for.
componentTypestringThe editor's own class name, exact where type is a family.
boardIdstringsectionIdstring | nullThe section the item sits inside, by position.
groupIdstring | nullpositionPointChild attributes
xnumberrequiredynumberrequiredsizeSizeChild attributes
widthnumberheightnumberrotationnumberzIndexintegerlockedbooleantextstringPlain text extracted from the item, for search and the outline.
readbackenum<string>One of exact, unwrapped, text, pointer, parts or none.
dataItemDataSelected by the sibling type. One schema per item type, generated from the component registry.
fromstring | nullConnectors only: the item or group: the line starts at.
tostring | nullConnectors only.
directedbooleanConnectors only.
labelstringConnectors only.
urlstringOpens the board focused on this item.
changedbooleanErrors
conflictThe item's type takes no records, the board is locked, or what the item holds could not be read back as it is.
validation_failedThe body did not match the schema for this item type.
rate_limitedToo many requests.