# Update page metadata (title, icon, move, archive, change space)

Setting workspaceId moves the page to another space the caller can
access — the entire subtree moves with it and the page becomes a
root of the target space unless the same request also names a parent
inside it.

A sidebar drag sends all three move fields at once (space, parent,
position), so parentId is validated:

- the parent must be a page the caller can see (404 otherwise —
  never a confirmation that an id exists in another org)
- the parent must be in the space the page ends up in, so a page is
  never nested under a parent that space's readers cannot open (400)
- the parent must not be the page itself or one of its own
  descendants (400) — a cycle detaches the whole branch from every
  root and it stops appearing in the tree

`parentId: ""` clears the parent, putting the page at the top level
of its space. `position` is a float, so a page can be dropped between
two siblings by writing one row instead of renumbering the list.


Canonical: https://easerix.com/docs/developers/api/notes/pages/updatePage

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="notes" operations={[{"path":"/v1/pages/{id}","method":"patch"}]} />
    </>
  );
}
