# Open the caller's daily page for a date

Daily notes (EAS-734). Returns the caller's page for a calendar date,
creating it when there is none, so it is safe to call twice, from two
tabs or two devices: a space holds one page per date. A page that was
trashed is restored. The server picks the space and the client never
names it: the caller's Private space in a team workspace, or the single
space of a personal workspace. Nobody else can read the page.

`date` is the date in the caller's own time zone (YYYY-MM-DD) and must
be within about a day of the server's date (400 `daily_date_out_of_range`
otherwise). `title` is used only when the page is created. A daily page
stays in its space on its date: `updatePage` refuses to move it or
nest it (409 `daily_page_fixed`), and no page can be nested under it
(400 `daily_no_children`).


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

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