# Copy last week onto this week

Copies the previous week's project and description rows onto weekStart. weekStart is YYYY-MM-DD and must be the first day of the caller's week. includeDurations also copies hours onto days that do not already have time. Days that already have time are left as they are and counted in skipped. A project the caller can no longer use is counted in unavailable. A submitted or approved week is 409 and is not changed. Last week having nothing to copy is 400.

Canonical: https://easerix.com/docs/developers/api/croncrunch/timesheets/copyLastWeek

{/* 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="croncrunch" operations={[{"path":"/v1/timesheets/copy","method":"post"}]} />
    </>
  );
}
