PATCH /x/api/v1/site/outline
Operations
The whole payload is validated before anything is written. `items` must be an array of objects, a new page's id may appear only once, and no page may become its own ancestor (the site's parents with the sent ones applied); an invalid payload answers 400 and changes nothing. An existing id sent twice is one page (the last entry wins); a parent that does not exist puts the page at the top level. The save is checkpointed, not atomic as a whole: the new structure (titles, parents, order, new pages) is written to site.json in one write, then page contents, duplicates and deletions are applied. A failure after that write answers an error and leaves the new structure saved. Every site.json write is atomic (a temp file renamed over it), so a failed write leaves the previous site.json as it was, and a failed save leaves no page folder that site.json does not list.
operationId updateSiteOutline
Connects to
- site offers this