Create block data

POST/v1/blocks/{blockId}/data
Base URL https://api.pivot.app

Creates one block data entry on a block, with the same permission check as the app. Use it when the block has no entry of that kind yet; change an existing entry with Update block data. A retry after an uncertain response can create a duplicate entry, so check the block's blockData before retrying. A goal's status is a BLOCK_DATA_TYPE_PROPERTY_VALUE entry with propertyDefinitionDetail {"kind":"goal-status","status":"todo"}, where status is todo, in-progress, in-review, done or cancel. Its assignees and labels are one BLOCK_DATA_TYPE_PROPERTY_VALUE entry with propertyDefinitionDetail {"kind":"goal-assignee-ids","assigneeIds":[],"itemProperties":{"labelIds":[]}}; label ids are the ids in the labels of the parent goal's goal-default-settings entry. Send plainTextContent as the same JSON string as the detail, because the apps read plainTextContent first.

path parameters

blockIdstring required

Request body

type String ENUM required

plainTextContent String

propertyDefinitionDetail Object

eventAttendanceDetail Object

goalCycleDefinitionDetail Object

Responses

Was this guide helpful?