Loading...

PATCH /x/api/v1/content/{idOrSlug}/blocks

Operations

Applies block operations to one page, all or nothing, as one git commit. Each op names its target by tag, index and before (the element's exact stored HTML); if the stored bytes do not match, nothing is written (409). setAttributes may only set attributes in the per-tag allowlist, normalized by kind (text, url); replaceBlock replaces the element with one complete element of the same tag. The change must pass the storage sanitizer unchanged, and parsing the page before and after must show no difference other than the targets. The rest of the page is left exactly as stored. Locked pages are refused (423). Each site has a budget of block changes per window (default 1000 per minute, security.blockOperationsRateLimit), charged only for changes about to be written; over it nothing is written (429, Retry-After).

operationId updateContentBlocks

Connects to