> ## 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.

# addTimeTrackingPolicy

> The `addTimeTrackingPolicy` API creates a company time tracking policy.

### What it does:
- Creates the policy used to enable time tracking for the company.
- Defines overtime thresholds for calculations.

### Notes:
- This policy currently defines `dailyOvertimeThreshold` and `weeklyOvertimeThreshold`.



## OpenAPI

````yaml post /adminPortal/addTimeTrackingPolicy
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/addTimeTrackingPolicy:
    post:
      tags:
        - TimeTracking Admin
      summary: addTimeTrackingPolicy
      description: >-
        The `addTimeTrackingPolicy` API creates a company time tracking policy.


        ### What it does:

        - Creates the policy used to enable time tracking for the company.

        - Defines overtime thresholds for calculations.


        ### Notes:

        - This policy currently defines `dailyOvertimeThreshold` and
        `weeklyOvertimeThreshold`.
      operationId: addTimeTrackingPolicy
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                companyId:
                  type: string
                dailyOvertimeThreshold:
                  type: integer
                weeklyOvertimeThreshold:
                  type: integer
              required:
                - method
                - companyId
            example:
              method: addTimeTrackingPolicy
              companyId: 5221FFCF-E84B-4690-B7DC-DE29D549096B
              dailyOvertimeThreshold: 8
              weeklyOvertimeThreshold: 40
      responses:
        '200':
          description: Policy created
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeTrackingPolicy:
                    type: object
                    properties:
                      timeTrackingPolicyId:
                        type: string
                      status:
                        type: string
                    required:
                      - timeTrackingPolicyId
                      - status
                required:
                  - timeTrackingPolicy
              example:
                timeTrackingPolicy:
                  timeTrackingPolicyId: 1DB2594A-7CC6-4310-B5F9-830604C66F6F
                  status: Active
          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: >-
                    An active time tracking policy already exists for this
                    company.
          headers: {}
      deprecated: false
      security: []

````