Blocks

Appends content to an object as blocks or Markdown (provide exactly one of blocks or markdown). On a whiteboard, the content becomes one new card on the canvas, and propertyId, parentBlockId and after_block are not supported. See Blocks for position, parent, and property options.

<br>

Rate limit: 30 requests per 60 seconds

post/blocks/append

Request

  • Base URL
    https://api.capacities.io
  • Auth
    HTTP bearer

Request body

object required
id, string uuid required

ID of the object to append blocks to.

propertyId, string

Property definition id for the block field.

parentBlockId, string

Parent block id when nesting under end or start.

position, union

Insert position (end, start, or after_block).

blocks, WritableApiBlock[]

Blocks to append. Omit id on new blocks.

markdown, string

Markdown to convert and append as blocks.

Response

200 OK

object required
id, string uuid required

Unique identifier of the object.

structureId, union required

Structure id (UUID for custom types, or a built-in id such as RootPage).

collections, string[] required

Collection ids this object is currently assigned to.

properties, ApiObjectProperties required

Map of property definition id to typed object property value.

blocks, object

Block content keyed by property definition id.

files, object[]

File resources attached to this object. Present only for media object types.

Changes

    • info

      added the new optional request property blocks/items/oneOf[#/components/schemas/WritableApiEntityBlock]/date/allOf[#/components/schemas/WritableApiDatePayload]/recurrence

    • info

      added the new optional request property blocks/items/oneOf[#/components/schemas/WritableApiEntityBlock]/date/allOf[#/components/schemas/WritableApiDatePayload]/reminder

    • info

      added the new optional request property blocks/items/oneOf[#/components/schemas/WritableApiTextBlock]/tokens/items/oneOf[#/components/schemas/WritableApiLinkToken]/date/allOf[#/components/schemas/WritableApiDatePayload]/recurrence

    9 more changes in this revision