> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rollfi.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# approveTimeOffRequest

> The `approveTimeOffRequest` API approves or denies a pending PTO request.

### What it does:

- Moves a pending request to `Approved` or `Denied`.
- Optionally overrides request breakout hours before finalizing status.

### Notes:

- Input uses `isApproved` (`true` approve, `false` deny).
- Only requests currently in `Pending` status can be processed.



## OpenAPI

````yaml post /adminPortal/approveTimeOffRequest
openapi: 3.1.0
info:
  title: Default module
  description: |
    Webhook events emitted when a company's KYB status is created or changes.

    Rollfi sends these requests to the webhook URL configured for the client.
    Consumers should return a successful 2xx response after accepting the event.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Admin Portal
  - name: TimeOff Admin
  - name: TimeTracking Admin
  - name: TimeOff User
  - name: TimeTracking User
  - name: TimeTracking Reports
  - name: TimeOff Reports
  - name: Pay Schedule Webhooks
  - name: Pay Period Webhooks
  - name: Employee Bank Account Webhooks
  - name: Employee KYC Webhooks
  - name: Company Bank Account Webhooks
  - name: Company Webhooks
  - name: Employee Status Webhooks
paths:
  /adminPortal/approveTimeOffRequest:
    post:
      tags:
        - TimeOff Admin
      summary: approveTimeOffRequest
      description: >-
        The `approveTimeOffRequest` API approves or denies a pending PTO
        request.


        ### What it does:


        - Moves a pending request to `Approved` or `Denied`.

        - Optionally overrides request breakout hours before finalizing status.


        ### Notes:


        - Input uses `isApproved` (`true` approve, `false` deny).

        - Only requests currently in `Pending` status can be processed.
      operationId: approveTimeOffRequest
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              properties:
                method:
                  type: string
                  const: updateTimeOffStatus
                timeOffRequestId:
                  type: string
                isApproved:
                  type: boolean
              required:
                - method
                - timeOffRequestId
                - isApproved
            example:
              method: updateTimeOffStatus
              timeOffRequestId: 5E11A5FA-83C1-4F83-91D2-46931D0B9C58
              isApproved: true
        required: true
      responses:
        '200':
          description: Status updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeOffRequest:
                    type: object
                    properties:
                      timeOffRequestId:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                    required:
                      - timeOffRequestId
                      - status
                      - message
                required:
                  - timeOffRequest
              example:
                timeOffRequest:
                  timeOffRequestId: F7D25F37-1B8B-4ED4-9BC2-2E4E8C3909E1
                  status: Approved
                  message: Time off request approved successfully
          headers: {}
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
              example:
                error:
                  code: 400
                  message: isApproved is required (true to approve, false to reject).
          headers: {}
      deprecated: false
      security: []

````