Blocks

Updates a single block’s content. See Blocks.

<br>

Rate limit: 30 requests per 60 seconds

patch/blocks/block

Request

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

Request body

object required
id, string uuid required

Unique identifier of the object containing the block.

blockId, string required

Unique identifier of the block to update.

propertyId, string

Property definition id that contains the block.

block, union required

Block for append or update. Omit id when creating new 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 block/oneOf[#/components/schemas/WritableApiEntityBlock]/date/allOf[#/components/schemas/WritableApiDatePayload]/recurrence

    • info

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

    • info

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

    9 more changes in this revision