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

# Upsert Org Time Tracking Config

> Creates or updates the org's time-tracking configuration (week start, breaks, grace, escalation, default template).

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

## OpenAPI

````yaml api-reference/openapi.json POST /hris/upsert-org-time-tracking-config
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /hris/upsert-org-time-tracking-config:
    post:
      operationId: upsertOrgTimeTrackingConfig
      summary: Upsert Org Time Tracking Config
      description: >-
        Creates or updates the org's time-tracking configuration (week start,
        breaks, grace, escalation, default template).


        Not available to API keys yet. It will need `time:write`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpsertOrgTimeTrackingConfigRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpsertOrgTimeTrackingConfigResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
        '429':
          description: Response 429
components:
  schemas:
    UpsertOrgTimeTrackingConfigRequest:
      type: object
      properties:
        weekStartsOn:
          type: integer
          minimum: 1
          maximum: 7
        breakTrackingMode:
          type: string
          enum:
            - MANUAL
            - PROMPTED
            - AUTOMATIC
        clockWidgetEnabled:
          type: boolean
        manualEntryGraceDays:
          type: integer
          minimum: 0
          maximum: 90
        signoffEscalationDays:
          type: integer
          minimum: 1
          maximum: 30
        defaultScheduleTemplateID:
          type:
            - string
            - 'null'
          format: uuid
    UpsertOrgTimeTrackingConfigResponse:
      type: object
      properties:
        orgTimeTrackingConfigID:
          type: string
      required:
        - orgTimeTrackingConfigID
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
