Changes data

quotecloud_patch_block_style

Shallow-merge style fields into a block’s style object, so naming one field does not drop the others. Works on documents in either contentMode via revisionToken or expectedRevision, and addresses the block by blockId or blockLinkId. A block whose payload has no style object is refused with invalid_existing_payload.

Inputs

documentIdRequired
Convex document ID or company-scoped numeric display ID. string
blockIdOptional
The block id reported by quotecloud_inspect_structure. Supply this or blockLinkId, not both. string
blockLinkIdOptional
The block’s API Link ID (BlockData.apiLinkId), the short handle set in the editor. Supply this or blockId, not both; a link id shared by several blocks is refused as ambiguous. string
revisionTokenOptional
Document revisionToken from quotecloud_inspect_structure. Selects the normalized argument family, which works in either contentMode; the write is refused with a *_revision_conflict if the document moved since it was read. string
expectedRevisionOptional
number
stylePatchRequired
object
lockTokenRequired
Stable opaque token for this agent edit session. Reuse it to heartbeat owned element locks. string