# Internal: persist CRDT state (notes-sync only)

Stores the Yjs binary and projects the JSON doc through the standard
save path (rev bump, snapshot throttling, wiki-link edges, search
text). The sync server is authoritative during co-editing, except
over writes made outside it: when baseRev is sent and the page's rev
has moved past it (a REST save, version restore or copilot write
while the page was open), the store is refused with 409 and the
current doc, so notes-sync applies that write to the live document
instead of overwriting it. Without baseRev the store is
unconditional.


Canonical: https://easerix.com/docs/developers/api/notes/system/internalPutSyncState

{/* 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":"/internal/pages/{id}/sync","method":"put"}]} />
    </>
  );
}
