# Save the rich document (optimistic concurrency)

Saves the doc with the revision the client loaded. A rev mismatch
returns 409 with the current server doc so the editor can merge
instead of clobbering another writer. Optionally syncs outgoing
wiki-link edges in the same save.


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

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