---
title: "Update block"
method: PATCH
path: "/blocks/block"
tags: ["Blocks"]
---

# Update block

`PATCH /blocks/block`

## Request

- Base URL: `https://api.capacities.io`
- URL: `https://api.capacities.io/blocks/block`
- Auth: HTTP bearer

Updates a single block’s content. See [Blocks](/api/concepts/blocks#updating-a-single-block).

<br>

**Rate limit**: 30 requests per 60 seconds

## Request body

- object
  - `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.
    - intersection
      - [`WritableApiTextBlock`](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf/schema?at=%2Fcomponents%2Fschemas%2FWritableApiTextBlock)
    - intersection
      - [`WritableApiGroupBlock`](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf/schema?at=%2Fcomponents%2Fschemas%2FWritableApiGroupBlock)
    - intersection
      - [`WritableApiGridBlock`](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf/schema?at=%2Fcomponents%2Fschemas%2FWritableApiGridBlock)
    - intersection
      - [`WritableApiCodeBlock`](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf/schema?at=%2Fcomponents%2Fschemas%2FWritableApiCodeBlock)
    - intersection
      - [`WritableApiMathBlock`](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf/schema?at=%2Fcomponents%2Fschemas%2FWritableApiMathBlock)
    - intersection
      - [`WritableApiEntityBlock`](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf/schema?at=%2Fcomponents%2Fschemas%2FWritableApiEntityBlock)
    - intersection
      - [`WritableApiHorizontalLineBlock`](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf/schema?at=%2Fcomponents%2Fschemas%2FWritableApiHorizontalLineBlock)

## Response `200`

200 OK

- object
  - `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).
    - string, uuid
    - 'RootSpace' | 'User' | 'UserPersonal' | 'RootDatabase' | 'RootQuery' | 'RootPage' | 'RootStructure' | 'RootEntity' | 'RootBlocksTemplate' | 'MediaImage' | 'MediaPDF' | 'MediaAudio' | 'MediaVideo' | 'MediaWebResource' | 'MediaFile' | 'MediaTweet' | 'RootAIChat' | 'RootSimpleTable' | 'RootWhiteboard' | 'RootDailyNote' | 'RootTag' | 'UtilDate' | 'RootTask'
  - `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.
    - `url` string, required: Signed URL for downloading the original file.
    - `fileType` string, required: MIME type of the file (e.g. `image/jpeg`, `application/pdf`).
    - `expirationDate` string: ISO 8601 datetime after which the signed URL expires. Re-fetch the object to get a fresh URL.

## Changes

- **2026-11-25** `cb48d3ffc537`: 12 info
  - added the new optional request property `block/oneOf[#/components/schemas/WritableApiEntityBlock]/date/allOf[#/components/schemas/WritableApiDatePayload]/recurrence`
  - added the new optional request property `block/oneOf[#/components/schemas/WritableApiEntityBlock]/date/allOf[#/components/schemas/WritableApiDatePayload]/reminder`
  - added the new optional request property `block/oneOf[#/components/schemas/WritableApiTextBlock]/tokens/items/oneOf[#/components/schemas/WritableApiLinkToken]/date/allOf[#/components/schemas/WritableApiDatePayload]/recurrence`
  - added the new optional request property `block/oneOf[#/components/schemas/WritableApiTextBlock]/tokens/items/oneOf[#/components/schemas/WritableApiLinkToken]/date/allOf[#/components/schemas/WritableApiDatePayload]/reminder`
  - …8 more
- **2026-09-24** `a4a8393a781e`: 1 warning
  - added the new `RootWhiteboard` enum value to the `structureId/anyOf[subschema #2]/` response property for the response status `200`
- **2026-09-08** `fbf7beb5767f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/capacities/apis/capacities-api-beta/changes/blocks/block/patch.md)

---

[API](https://skmtc.dev/capacities/apis/capacities-api-beta.md) - [All operations](https://skmtc.dev/capacities/apis/capacities-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/capacities/apis/capacities-api-beta/revisions/8a6ece33d9bf?raw)
