> ## Documentation Index
> Fetch the complete documentation index at: https://docs.a-char.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel a time-off request

> Cancels a pending, approved or declined request and returns its days to the balance; `note` is an optional reason. Only an admin can cancel a request that has already started. Defaults to the caller's own request; `employee_id` cancels someone else's and needs the admin role or being their approver. Requires the `time-off:write` scope.



## OpenAPI

````yaml /openapi.json post /time-off/requests/{id}/cancel
openapi: 3.1.1
info:
  title: A-Char API
  version: 1.0.0
  description: 'Authenticate with `Authorization: Bearer <api key>`.'
servers:
  - url: https://a-char.com/api/v1
security:
  - bearerAuth: []
paths:
  /time-off/requests/{id}/cancel:
    post:
      tags:
        - Time off requests
      summary: Cancel a time-off request
      description: >-
        Cancels a pending, approved or declined request and returns its days to
        the balance; `note` is an optional reason. Only an admin can cancel a
        request that has already started. Defaults to the caller's own request;
        `employee_id` cancels someone else's and needs the admin role or being
        their approver. Requires the `time-off:write` scope.
      operationId: timeOff.cancel
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                employee_id:
                  type: string
                  format: uuid
                note:
                  type: string
                  minLength: 1
                  maxLength: 300
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                required:
                  - id
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.