Move a section to another page
Move a block from one tab of a draft to another.
The block lands last on the page it arrives at, and the page it left is numbered from 1 again. The section is untouched: only where it sits changes.
The page has to belong to the same version. One from another version, or another template, answers 404.
Parameters
Sent as JSON. Anything not listed here is ignored.
The id of the template. A path that is not a uuid answers 404 without a query being run, so neither the slug nor a sequential number reaches anything here.
The number of the version within its template, counting from 1, which is the number shown in the version history and the number a change note refers to. It is not a row id, so version 1 of one template and version 1 of another are different things reached through different templates.
The id of the placement, which is not the id of the section. It is the id a placement comes back with when a version is read.
The page to move it to, which has to be a page of this version.
Returns
The placement, now on its new page.
The placement.
Always structure_version_section. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
Where the block sits on its page, counting from 1 again on each page.
What the block is headed: the override when there is one, and the name of the section otherwise. It is what to show a reader.
The heading chosen for this placement alone, or null when the section name is used. What a section is called here belongs to the assembly rather than to the section.
The id of the reusable section behind the placement. The same section may appear in several templates and in several versions of one template.
What the section is called in the section library.
Which version of the section is placed here. A placement names a version and not a section, which is what stops a change made through another template reaching this one.
One of draft, published or retired, for the section version rather than the template version. A template version cannot be published while a section it carries is still a draft.
Whether the block starts folded shut when somebody opens the record.
What the section collects. Empty here, since these endpoints answer with the placement rather than with the section contents. Read the version to get the whole structure.
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.