# Create a public link (view or edit mode)

Internal pages (every space by default) can only be shared by the
space owner or a workspace owner/admin, with confirmInternal=true;
every link expires. The public read and save re-check revocation,
expiry, trash and, for internal pages, the approval on every request,
and answer 404 for a dead link.

Anonymous edit links are turned off unless the deployment sets
NOTES_ALLOW_EDIT_LINKS=true: mode=edit is refused with 403
edit_links_disabled, and existing edit links serve as view links
(the public read reports mode=view and the public save returns 403).


Canonical: https://easerix.com/docs/developers/api/notes/sharing/createShare

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