# Apply a template to an empty week

Places the template's project and description rows on weekStart. The week must have no time and no activity rows. A submitted or approved week is 409. Hours are not copied. Activities whose project or task is no longer available are counted in unavailable and not placed. When none can be placed, the call is 400 and the week is unchanged.

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

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