Object

Updates an object by id. Provide at least one of properties, collections, or blocks. See Objects.

<br>

Rate limit: 30 requests per 60 seconds

patch/object

Request

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

Request body

object required
id, string required

Unique identifier of the object to update.

collections, string[]

Collection ids to assign. Pass an empty array to use the default collection for this structure.

properties, WritableApiObjectProperties

Map of property definition id → value; only include keys you want to change.

blocks, object

Block content keyed by property definition id.

deleteRequested, boolean

When true, moves the object to trash. When false, restores a trashed object.

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/additionalProperties/items/oneOf[#/components/schemas/WritableApiEntityBlock]/date/allOf[#/components/schemas/WritableApiDatePayload]/recurrence

    • info

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

    • info

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

    13 more changes in this revision