# Update workspace time-entry rules

Partial update. Only an owner or admin may change these rules. A missing boolean is left as it is. lockOlderThanDays is a whole number from 1 to 3650, or null to turn that lock off. lockBefore is a YYYY-MM-DD date, or null to turn that lock off. The two locks are independent: an entry is locked when either one matches. "Older than N days" is a rolling UTC window. "Before a date" locks instants before that date at 00:00 UTC, so the date itself stays open. Required fields apply to everyone, including an owner or admin. The time lock does not: an owner or admin can still create, edit, delete, and stop locked time.

Canonical: https://easerix.com/docs/developers/api/croncrunch/entries/updateWorkspaceSettings

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