# Cancel the caller's pending request

Team workspaces only. The caller can cancel their own pending request. Someone else's request is 404. The days return to the balance. An approved request cannot be cancelled, and its days stay counted for the year.

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

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