# Approve a time off request

Team workspaces only, owner or admin. The request must be pending. The allowance is checked again, so a policy lowered after the request was made can still refuse it. A holiday added over the dates can leave no working day, which is also refused.

Canonical: https://easerix.com/docs/developers/api/croncrunch/time-off/approveTimeOffRequest

{/* 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/time-off/requests/{id}/approve","method":"post"}]} />
    </>
  );
}
