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

# Update Hris Time Off Status

> Approves, rejects or cancels a time-off request under transition rules, logging and notifying.

Not available to API keys yet. It will need `time:write`.

## OpenAPI

````yaml api-reference/openapi.json POST /hris/update-hris-time-off-status
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /hris/update-hris-time-off-status:
    post:
      operationId: updateHrisTimeOffStatus
      summary: Update Hris Time Off Status
      description: >-
        Approves, rejects or cancels a time-off request under transition rules,
        logging and notifying.


        Not available to API keys yet. It will need `time:write`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateHrisTimeOffStatusRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateHrisTimeOffStatusResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
        '429':
          description: Response 429
components:
  schemas:
    UpdateHrisTimeOffStatusRequest:
      type: object
      properties:
        hrisTimeOffID:
          type: string
          format: uuid
        roleInOrgID:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - APPROVED
            - REJECTED
            - CANCELLED
        rejectionReason:
          type: string
          maxLength: 500
        expectedStatus:
          type: string
          enum:
            - REQUESTED
            - APPROVED
            - REJECTED
            - CANCELLED
        expectedFingerprint:
          type: string
          maxLength: 128
      required:
        - hrisTimeOffID
        - roleInOrgID
        - status
    UpdateHrisTimeOffStatusResponse:
      $ref: '#/components/schemas/TimeOffStatusMutation'
      description: Request regeneration does not infer response shapes.
    TimeOffStatusMutation:
      type: object
      properties:
        id:
          type: string
          format: uuid
        hrisTimeOffID:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - REQUESTED
            - APPROVED
            - REJECTED
            - CANCELLED
        startDate:
          type: string
          format: date
        endDate:
          type: string
          format: date
      required:
        - id
        - hrisTimeOffID
        - status
        - startDate
        - endDate
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
