openapi: 3.1.0
info:
  title: AbaNinja Time Tracking API
  version: 3.0.0
  x-domain-id: time-tracking
servers:
  - url: https://api.abaninja.ch
    description: The AbaNinja API server
tags:
  - name: time-tracking-employees
    description: Manage employees
    x-displayName: Employees
  - name: time-tracking-employee-groups
    description: Manage employee groups
    x-displayName: Employee Groups
  - name: time-tracking-employee-statistics
    description: Get employee statistics
    x-displayName: Employee Statistics
  - name: time-tracking-employee-organigram
    description: Manage employee organigram
    x-displayName: Employee Organigram
  - name: time-tracking-activities
    description: Manage time tracking activities
    x-displayName: Activities
  - name: time-tracking-timestamps
    description: Manage time tracking timestamps
    x-displayName: Timestamps
  - name: time-tracking-corrections
    description: Manage time tracking corrections
    x-displayName: Corrections
  - name: time-tracking-closures
    description: Manage time tracking closures
    x-displayName: Closures
  - name: time-tracking-contracts
    description: Manage time tracking contracts
    x-displayName: Contracts
  - name: time-tracking-settings
    description: Manage time tracking settings
    x-displayName: Time Tracking Settings
security:
  - ApiToken: []
paths:
  /accounts/{accountUuid}/time/v2/employee-groups:
    get:
      tags:
        - time-tracking-employee-groups
      summary: Get employee groups
      description: Get all employee groups for an account
      operationId: time_list_employee_groups
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Employee Group Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            translations:
                              properties:
                                de:
                                  properties:
                                    description:
                                      type:
                                        - string
                                        - 'null'
                                    name:
                                      type: string
                                  type: object
                                en:
                                  properties:
                                    description:
                                      type:
                                        - string
                                        - 'null'
                                    name:
                                      type: string
                                  type: object
                                fr:
                                  properties:
                                    description:
                                      type:
                                        - string
                                        - 'null'
                                    name:
                                      type: string
                                  type: object
                                it:
                                  properties:
                                    description:
                                      type:
                                        - string
                                        - 'null'
                                    name:
                                      type: string
                                  type: object
                              type: object
                          type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: e0175cb85da7aabef8d7826636aaf532
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-employee-groups
      summary: Add employee group
      description: Add a new employee group for an account
      operationId: time_create_employee_groups
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add employee group
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-group.schema.json
              description: A Schema for creating/updating timetracking employee group in AbaNinja over API
              type: object
              properties:
                translations:
                  type: object
                  properties:
                    de:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                    en:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                    fr:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                    it:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                  required:
                    - de
                    - en
                    - fr
                    - it
              required:
                - translations
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Group Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 4a6f16c60634fff931a2a57eb0fc088c
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees:
    get:
      tags:
        - time-tracking-employees
      summary: Get employees
      description: Get all employees for an account
      operationId: time_list_employees
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: onlyInactive
          in: query
          description: get only inactive employees
          required: false
          schema:
            type:
              - boolean
              - 'null'
            default: null
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Employee Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            firstName:
                              type:
                                - string
                                - 'null'
                            lastName:
                              type:
                                - string
                                - 'null'
                            jobTitle:
                              type:
                                - string
                                - 'null'
                            employeeNumber:
                              type: string
                            birthDate:
                              type:
                                - string
                                - 'null'
                              format: date
                            employeeGroupUuid:
                              type: string
                              format: uuid
                            employeeGroup:
                              title: Employee Group Resource
                              properties:
                                uuid:
                                  type: string
                                  format: uuid
                                translations:
                                  properties:
                                    de:
                                      properties:
                                        description:
                                          type:
                                            - string
                                            - 'null'
                                        name:
                                          type: string
                                      type: object
                                    en:
                                      properties:
                                        description:
                                          type:
                                            - string
                                            - 'null'
                                        name:
                                          type: string
                                      type: object
                                    fr:
                                      properties:
                                        description:
                                          type:
                                            - string
                                            - 'null'
                                        name:
                                          type: string
                                      type: object
                                    it:
                                      properties:
                                        description:
                                          type:
                                            - string
                                            - 'null'
                                        name:
                                          type: string
                                      type: object
                                  type: object
                              type: object
                            employmentStartDate:
                              type: string
                              format: date
                            isActive:
                              type: boolean
                              deprecated: true
                            userUuid:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            user:
                              oneOf:
                                - title: User Resource
                                  properties:
                                    id:
                                      type: integer
                                      deprecated: true
                                    uuid:
                                      type: string
                                      format: uuid
                                    firstName:
                                      type:
                                        - string
                                        - 'null'
                                    lastName:
                                      type:
                                        - string
                                        - 'null'
                                    email:
                                      type:
                                        - string
                                        - 'null'
                                  type: object
                                - type: 'null'
                              deprecated: true
                            accountUuid:
                              type: string
                              format: uuid
                            addressUuid:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            personUuid:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            timeTrackingStartDate:
                              type: string
                              format: date
                            timeTrackingStartDateEditable:
                              type: boolean
                              deprecated: true
                            isPresent:
                              type: boolean
                              deprecated: true
                            hasInvalidContracts:
                              type: boolean
                              deprecated: true
                            hasImage:
                              type: boolean
                            additionalInformation:
                              type:
                                - string
                                - 'null'
                            createdAt:
                              type: string
                              format: date-time
                            updatedAt:
                              type: string
                              format: date-time
                          type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: e9417be2d3089e4cc8a5f763c109fd67
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-employees
      summary: Add employee
      description: Add a new employee for an account
      operationId: time_create_employees
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add employee
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee.schema.json
              description: A Schema for creating/updating timetracking employee in AbaNinja over API
              type: object
              properties:
                employeeNumber:
                  type: string
                  maxLength: 255
                firstName:
                  type: string
                  maxLength: 255
                lastName:
                  type:
                    - string
                    - 'null'
                  maxLength: 255
                jobTitle:
                  type:
                    - string
                    - 'null'
                  maxLength: 255
                userUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                employmentStartDate:
                  type: string
                  format: date
                birthDate:
                  type:
                    - string
                    - 'null'
                  format: date
                addressUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                employeeGroupUuid:
                  type:
                    - string
                  format: uuid
                timeTrackingStartDate:
                  type: string
                  format: date
                additionalInformation:
                  type:
                    - string
                    - 'null'
                  maxLength: 5000
              required:
                - employeeNumber
                - firstName
                - employmentStartDate
                - employeeGroupUuid
                - timeTrackingStartDate
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          firstName:
                            type:
                              - string
                              - 'null'
                          lastName:
                            type:
                              - string
                              - 'null'
                          jobTitle:
                            type:
                              - string
                              - 'null'
                          employeeNumber:
                            type: string
                          birthDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeGroupUuid:
                            type: string
                            format: uuid
                          employeeGroup:
                            title: Employee Group Resource
                            properties:
                              uuid:
                                type: string
                                format: uuid
                              translations:
                                properties:
                                  de:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  en:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  fr:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  it:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                type: object
                            type: object
                          employmentStartDate:
                            type: string
                            format: date
                          isActive:
                            type: boolean
                            deprecated: true
                          userUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          user:
                            oneOf:
                              - title: User Resource
                                properties:
                                  id:
                                    type: integer
                                    deprecated: true
                                  uuid:
                                    type: string
                                    format: uuid
                                  firstName:
                                    type:
                                      - string
                                      - 'null'
                                  lastName:
                                    type:
                                      - string
                                      - 'null'
                                  email:
                                    type:
                                      - string
                                      - 'null'
                                type: object
                              - type: 'null'
                            deprecated: true
                          accountUuid:
                            type: string
                            format: uuid
                          addressUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          personUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          timeTrackingStartDate:
                            type: string
                            format: date
                          timeTrackingStartDateEditable:
                            type: boolean
                            deprecated: true
                          isPresent:
                            type: boolean
                            deprecated: true
                          hasInvalidContracts:
                            type: boolean
                            deprecated: true
                          hasImage:
                            type: boolean
                          additionalInformation:
                            type:
                              - string
                              - 'null'
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b58232b3b8e9ca03d689598cce510946
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employee-groups/{employeeGroupUuid}:
    get:
      tags:
        - time-tracking-employee-groups
      summary: Get employee group
      description: Get an employee group for an account
      operationId: time_get_employee_groups
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeGroupUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Group Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 485209891ad670337ee166176e06af38
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-employee-groups
      summary: Update employee group
      description: Update an employee group for an account
      operationId: time_update_employee_groups
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeGroupUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update employee group
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-group.schema.json
              description: A Schema for creating/updating timetracking employee group in AbaNinja over API
              type: object
              properties:
                translations:
                  type: object
                  properties:
                    de:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                    en:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                    fr:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                    it:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                  required:
                    - de
                    - en
                    - fr
                    - it
              required:
                - translations
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Group Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type:
                                      - string
                                      - 'null'
                                  name:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 391fa6fb94139b647359d3bc1b172a29
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-employee-groups
      summary: Delete employee group
      description: Delete an employee group of an account
      operationId: time_delete_employee_groups
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeGroupUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b0e1d7d39fa7e6fe8c88bca067af432e
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}:
    get:
      tags:
        - time-tracking-employees
      summary: Get employee
      description: Get an employee for an account
      operationId: time_get_employees
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          firstName:
                            type:
                              - string
                              - 'null'
                          lastName:
                            type:
                              - string
                              - 'null'
                          jobTitle:
                            type:
                              - string
                              - 'null'
                          employeeNumber:
                            type: string
                          birthDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeGroupUuid:
                            type: string
                            format: uuid
                          employeeGroup:
                            title: Employee Group Resource
                            properties:
                              uuid:
                                type: string
                                format: uuid
                              translations:
                                properties:
                                  de:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  en:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  fr:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  it:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                type: object
                            type: object
                          employmentStartDate:
                            type: string
                            format: date
                          isActive:
                            type: boolean
                            deprecated: true
                          userUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          user:
                            oneOf:
                              - title: User Resource
                                properties:
                                  id:
                                    type: integer
                                    deprecated: true
                                  uuid:
                                    type: string
                                    format: uuid
                                  firstName:
                                    type:
                                      - string
                                      - 'null'
                                  lastName:
                                    type:
                                      - string
                                      - 'null'
                                  email:
                                    type:
                                      - string
                                      - 'null'
                                type: object
                              - type: 'null'
                            deprecated: true
                          accountUuid:
                            type: string
                            format: uuid
                          addressUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          personUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          timeTrackingStartDate:
                            type: string
                            format: date
                          timeTrackingStartDateEditable:
                            type: boolean
                            deprecated: true
                          isPresent:
                            type: boolean
                            deprecated: true
                          hasInvalidContracts:
                            type: boolean
                            deprecated: true
                          hasImage:
                            type: boolean
                          additionalInformation:
                            type:
                              - string
                              - 'null'
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 7f7c81d0a693c85d1920c5f3fdc7633f
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-employees
      summary: Update employee
      description: Update an employee for an account
      operationId: time_update_employees
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update employee
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee.schema.json
              description: A Schema for creating/updating timetracking employee in AbaNinja over API
              type: object
              properties:
                employeeNumber:
                  type: string
                  maxLength: 255
                firstName:
                  type: string
                  maxLength: 255
                lastName:
                  type:
                    - string
                    - 'null'
                  maxLength: 255
                jobTitle:
                  type:
                    - string
                    - 'null'
                  maxLength: 255
                userUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                employmentStartDate:
                  type: string
                  format: date
                birthDate:
                  type:
                    - string
                    - 'null'
                  format: date
                addressUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                employeeGroupUuid:
                  type:
                    - string
                  format: uuid
                timeTrackingStartDate:
                  type: string
                  format: date
                additionalInformation:
                  type:
                    - string
                    - 'null'
                  maxLength: 5000
              required:
                - employeeNumber
                - firstName
                - employmentStartDate
                - employeeGroupUuid
                - timeTrackingStartDate
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          firstName:
                            type:
                              - string
                              - 'null'
                          lastName:
                            type:
                              - string
                              - 'null'
                          jobTitle:
                            type:
                              - string
                              - 'null'
                          employeeNumber:
                            type: string
                          birthDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeGroupUuid:
                            type: string
                            format: uuid
                          employeeGroup:
                            title: Employee Group Resource
                            properties:
                              uuid:
                                type: string
                                format: uuid
                              translations:
                                properties:
                                  de:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  en:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  fr:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  it:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                type: object
                            type: object
                          employmentStartDate:
                            type: string
                            format: date
                          isActive:
                            type: boolean
                            deprecated: true
                          userUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          user:
                            oneOf:
                              - title: User Resource
                                properties:
                                  id:
                                    type: integer
                                    deprecated: true
                                  uuid:
                                    type: string
                                    format: uuid
                                  firstName:
                                    type:
                                      - string
                                      - 'null'
                                  lastName:
                                    type:
                                      - string
                                      - 'null'
                                  email:
                                    type:
                                      - string
                                      - 'null'
                                type: object
                              - type: 'null'
                            deprecated: true
                          accountUuid:
                            type: string
                            format: uuid
                          addressUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          personUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          timeTrackingStartDate:
                            type: string
                            format: date
                          timeTrackingStartDateEditable:
                            type: boolean
                            deprecated: true
                          isPresent:
                            type: boolean
                            deprecated: true
                          hasInvalidContracts:
                            type: boolean
                            deprecated: true
                          hasImage:
                            type: boolean
                          additionalInformation:
                            type:
                              - string
                              - 'null'
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b4f70d8252cbaad3d44b26e9eb30135d
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-employees
      summary: Delete employee
      description: Delete an employee of an account
      operationId: time_delete_employees
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: e5125798761e5f60b8dd7b097c21d753
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/available-users:
    get:
      tags:
        - time-tracking-employees
      summary: Get available users
      description: Get available users for employees
      operationId: time_list_available_users
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: query
          description: excluded employee
          required: false
          schema:
            type:
              - string
              - 'null'
            format: uuid
            default: null
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: User Resource
                          properties:
                            id:
                              type: integer
                              deprecated: true
                            uuid:
                              type: string
                              format: uuid
                            firstName:
                              type:
                                - string
                                - 'null'
                            lastName:
                              type:
                                - string
                                - 'null'
                            email:
                              type:
                                - string
                                - 'null'
                          type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: f55306a075f622f14d9ca6d76b18a07b
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/me:
    get:
      tags:
        - time-tracking-employees
      summary: Get current employee
      description: Get the employee for the current user and account
      operationId: time_list_me
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          firstName:
                            type:
                              - string
                              - 'null'
                          lastName:
                            type:
                              - string
                              - 'null'
                          jobTitle:
                            type:
                              - string
                              - 'null'
                          employeeNumber:
                            type: string
                          birthDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeGroupUuid:
                            type: string
                            format: uuid
                          employeeGroup:
                            title: Employee Group Resource
                            properties:
                              uuid:
                                type: string
                                format: uuid
                              translations:
                                properties:
                                  de:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  en:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  fr:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                  it:
                                    properties:
                                      description:
                                        type:
                                          - string
                                          - 'null'
                                      name:
                                        type: string
                                    type: object
                                type: object
                            type: object
                          employmentStartDate:
                            type: string
                            format: date
                          isActive:
                            type: boolean
                            deprecated: true
                          userUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          user:
                            oneOf:
                              - title: User Resource
                                properties:
                                  id:
                                    type: integer
                                    deprecated: true
                                  uuid:
                                    type: string
                                    format: uuid
                                  firstName:
                                    type:
                                      - string
                                      - 'null'
                                  lastName:
                                    type:
                                      - string
                                      - 'null'
                                  email:
                                    type:
                                      - string
                                      - 'null'
                                type: object
                              - type: 'null'
                            deprecated: true
                          accountUuid:
                            type: string
                            format: uuid
                          addressUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          personUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          timeTrackingStartDate:
                            type: string
                            format: date
                          timeTrackingStartDateEditable:
                            type: boolean
                            deprecated: true
                          isPresent:
                            type: boolean
                            deprecated: true
                          hasInvalidContracts:
                            type: boolean
                            deprecated: true
                          hasImage:
                            type: boolean
                          additionalInformation:
                            type:
                              - string
                              - 'null'
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 200
                    type: object
        '204':
          description: User has no employee
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 12bf9dbaa37a0e3e811c10c80ed45536
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/settings/activity:
    get:
      tags:
        - time-tracking-settings
      summary: Get activity setting
      description: Get the activity setting for an account
      operationId: time_list_activity
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Position Resource
                        properties:
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 7299a692e7ef49550b7193a08b547721
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-settings
      summary: Update activity setting
      description: Update the activity setting for an account
      operationId: time_update_activity
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update activity setting
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-activity-position.schema.json
              description: A Schema for updating timetracking activity position description in AbaNinja over API
              type: object
              properties:
                translations:
                  type: object
                  properties:
                    de:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    en:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    fr:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    it:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                  required:
                    - de
                    - en
                    - fr
                    - it
              required:
                - translations
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Position Resource
                        properties:
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 7f5d53bcfbb8cfc58e66a29b3122f464
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/settings/activity-types:
    get:
      tags:
        - time-tracking-settings
      summary: Get activity types
      description: Get all activity types for an account
      operationId: time_list_activity_types
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Activity Type Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            activityTypeMasterUuid:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            activityNumber:
                              type: string
                            unit:
                              type:
                                - string
                                - 'null'
                            isCount:
                              type: boolean
                            isBillable:
                              type: boolean
                            isHoliday:
                              type: boolean
                            activityGroup:
                              type: integer
                              enum:
                                - 1
                                - 2
                            isTimeCredit:
                              type: boolean
                            isShortTimeWork:
                              type: boolean
                            isFavorite:
                              type: boolean
                            used:
                              type: boolean
                            translations:
                              properties:
                                de:
                                  properties:
                                    description:
                                      type: string
                                  type: object
                                en:
                                  properties:
                                    description:
                                      type: string
                                  type: object
                                fr:
                                  properties:
                                    description:
                                      type: string
                                  type: object
                                it:
                                  properties:
                                    description:
                                      type: string
                                  type: object
                              type: object
                          type: object
                      status:
                        example: 200
                    type: object
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 5c68f1cac74686b710c60081041d7cb3
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-settings
      summary: Add activity type
      description: Add a new activity type for an account
      operationId: time_create_activity_types
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add activity type
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-activitytype.schema.json
              description: A Schema for creating/updating timetracking employee activity type in AbaNinja over API
              type: object
              properties:
                activityNumber:
                  type: string
                  minLength: 1
                unit:
                  type: string
                  enum:
                    - min
                    - hrs
                    - day
                isCount:
                  type: boolean
                isBillable:
                  type: boolean
                isHoliday:
                  type: boolean
                activityGroup:
                  type: integer
                  enum:
                    - 1
                    - 2
                  description: 1 = Work, 2 = Absence
                isTimeCredit:
                  type: boolean
                isShortTimeWork:
                  type: boolean
                isFavorite:
                  type: boolean
                translations:
                  type: object
                  properties:
                    de:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    en:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    fr:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    it:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                  required:
                    - de
                    - en
                    - fr
                    - it
              required:
                - activityNumber
                - unit
                - isCount
                - isBillable
                - isHoliday
                - activityGroup
                - isTimeCredit
                - isShortTimeWork
                - translations
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Type Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          activityTypeMasterUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          activityNumber:
                            type: string
                          unit:
                            type:
                              - string
                              - 'null'
                          isCount:
                            type: boolean
                          isBillable:
                            type: boolean
                          isHoliday:
                            type: boolean
                          activityGroup:
                            type: integer
                            enum:
                              - 1
                              - 2
                          isTimeCredit:
                            type: boolean
                          isShortTimeWork:
                            type: boolean
                          isFavorite:
                            type: boolean
                          used:
                            type: boolean
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: c3fee42a4373efc00b452982b71204b3
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/settings/work-models:
    get:
      tags:
        - time-tracking-settings
      summary: Get work models
      description: Get all work models for an account
      operationId: time_list_work_models
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Work Model Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            isSystem:
                              type: boolean
                            hoursPerWeek:
                              type: number
                            holidaysPerYear:
                              type: number
                            monday:
                              type: boolean
                            tuesday:
                              type: boolean
                            wednesday:
                              type: boolean
                            thursday:
                              type: boolean
                            friday:
                              type: boolean
                            saturday:
                              type: boolean
                            sunday:
                              type: boolean
                            isUsed:
                              type: boolean
                            translations:
                              properties:
                                de:
                                  properties:
                                    description:
                                      type: string
                                    name:
                                      type: string
                                  type: object
                                en:
                                  properties:
                                    description:
                                      type: string
                                    name:
                                      type: string
                                  type: object
                                fr:
                                  properties:
                                    description:
                                      type: string
                                    name:
                                      type: string
                                  type: object
                                it:
                                  properties:
                                    description:
                                      type: string
                                    name:
                                      type: string
                                  type: object
                              type: object
                          type: object
                      status:
                        example: 200
                    type: object
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: e2804258aaebc847408232091cf2991e
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-settings
      summary: Add work model
      description: Add a new work model for an account
      operationId: time_create_work_models
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add work model
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-work-model.schema.json
              description: A Schema for creating/updating timetracking employee work models in AbaNinja over API
              type: object
              properties:
                hoursPerWeek:
                  type: number
                holidaysPerYear:
                  type: number
                monday:
                  type: boolean
                tuesday:
                  type: boolean
                wednesday:
                  type: boolean
                thursday:
                  type: boolean
                friday:
                  type: boolean
                saturday:
                  type: boolean
                sunday:
                  type: boolean
                translations:
                  type: object
                  properties:
                    de:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                    en:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                    fr:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                    it:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                  required:
                    - de
                    - en
                    - fr
                    - it
              required:
                - hoursPerWeek
                - holidaysPerYear
                - monday
                - tuesday
                - wednesday
                - thursday
                - friday
                - saturday
                - sunday
                - translations
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Work Model Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          isSystem:
                            type: boolean
                          hoursPerWeek:
                            type: number
                          holidaysPerYear:
                            type: number
                          monday:
                            type: boolean
                          tuesday:
                            type: boolean
                          wednesday:
                            type: boolean
                          thursday:
                            type: boolean
                          friday:
                            type: boolean
                          saturday:
                            type: boolean
                          sunday:
                            type: boolean
                          isUsed:
                            type: boolean
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: eb36ba1c948f90236de671ae6495da79
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/activities:
    post:
      tags:
        - time-tracking-activities
      summary: Add activity
      description: Add an activity for an employee
      operationId: time_create_activities
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add activity
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-activity.schema.json
              description: A Schema for creating/updating timetracking employee activity in AbaNinja over API
              type: object
              properties:
                activityTypeUuid:
                  type: string
                  format: uuid
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                startTime:
                  type: string
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                  example: '14:35'
                endTime:
                  type: string
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                  example: '15:45'
                halfDay:
                  type: boolean
                addressUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                contractNoteUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                productUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                description:
                  type:
                    - string
                    - 'null'
                  maxLength: 5000
              required:
                - activityTypeUuid
                - startDate
                - endDate
                - startTime
                - endTime
                - halfDay
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          accountUuid:
                            type: string
                            format: uuid
                          employeeUuid:
                            type: string
                            format: uuid
                          activityTypeUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          addressUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          addressDescription:
                            type: string
                            deprecated: true
                          productUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          productKey:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          productDescription:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          startDate:
                            type: string
                            format: date
                            deprecated: true
                          endDate:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T21:00:00'
                          halfDay:
                            type: boolean
                          description:
                            type:
                              - string
                              - 'null'
                          contractNoteId:
                            type:
                              - integer
                              - 'null'
                            deprecated: true
                          contractNoteUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          isInvoiced:
                            type: boolean
                            deprecated: true
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          contractNoteName:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          poNumber:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 431ae5f3836e07be0778352aeea0617c
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/attachments:
    get:
      tags:
        - time-tracking-employees
      summary: Get attachments
      description: Get all attachments of an employee
      operationId: time_list_attachments
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Employee Attachment Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            name:
                              type: string
                            size:
                              type: integer
                            mimeType:
                              type: string
                            url:
                              type:
                                - string
                                - 'null'
                              format: uri
                          type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 665ee330632d7f17146669513b38ed8c
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-employees
      summary: Upload attachment
      description: Upload an attachment for an employee
      operationId: time_create_attachments
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
              type: object
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Attachment Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          name:
                            type: string
                          size:
                            type: integer
                          mimeType:
                            type: string
                          url:
                            type:
                              - string
                              - 'null'
                            format: uri
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b1fd727027806e8272e4f4e7eef6a583
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/calendar:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get employee calendar
      description: Get the calendar of an employee
      operationId: time_list_calendar
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: dateFrom
          in: query
          required: true
          schema:
            type: string
            format: date
        - name: dateTo
          in: query
          required: true
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Calendar Resource
                        properties:
                          date:
                            type: string
                            format: date
                          nonWorkingDay:
                            type: boolean
                          activity:
                            type: boolean
                          inOut:
                            type: boolean
                          absences:
                            type: boolean
                          away:
                            type: boolean
                          holidays:
                            type: array
                            items:
                              properties:
                                halfDay:
                                  type: boolean
                                name:
                                  type: string
                              type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b23614acbfae77c1b5c96ee8724512a0
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/closures:
    get:
      tags:
        - time-tracking-closures
      summary: Get closures
      description: Get all closures of an employee
      operationId: time_list_closures
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Employee Closure Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            accountUuid:
                              type: string
                              format: uuid
                            employeeUuid:
                              type: string
                              format: uuid
                            closureDate:
                              type: string
                              format: date
                            holidays:
                              type: number
                            holidayCorrection:
                              type: number
                            flextime:
                              type: number
                            timeCorrection:
                              type: number
                            shortWork:
                              type: number
                            deleteable:
                              type: boolean
                              deprecated: true
                            deletable:
                              type: boolean
                          type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 85c97f27f491d63cbb761373072b6701
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-closures
      summary: Add closure
      description: Add a closure for an employee
      operationId: time_create_closures
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add closure
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-closure.schema.json
              description: A Schema for creating timetracking employee closure in AbaNinja over API
              type: object
              properties:
                closureDate:
                  type: string
                  format: date
              required:
                - closureDate
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data: {}
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: da5c485516fddb0314f6ed09b4899cc6
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/contracts:
    get:
      tags:
        - time-tracking-contracts
      summary: Get contracts
      description: Get all contracts of an employee
      operationId: time_list_contracts
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Employee Contract Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            monday:
                              type: boolean
                            tuesday:
                              type: boolean
                            wednesday:
                              type: boolean
                            thursday:
                              type: boolean
                            friday:
                              type: boolean
                            saturday:
                              type: boolean
                            sunday:
                              type: boolean
                            validFromDate:
                              type:
                                - string
                                - 'null'
                              format: date
                            validToDate:
                              type:
                                - string
                                - 'null'
                              format: date
                            employeeWorkModelUuid:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            employmentFactor:
                              type: number
                            shortTimeWorkFactor:
                              type: number
                            workingDays:
                              type: integer
                            hoursPerWeek:
                              type: number
                            holidaysPerYear:
                              type: number
                            workingStateCode:
                              type:
                                - string
                                - 'null'
                            workingStateName:
                              type:
                                - string
                                - 'null'
                            workingCountryCode:
                              type:
                                - string
                                - 'null'
                            workingCountryName:
                              type:
                                - string
                                - 'null'
                            isClosed:
                              type: boolean
                          type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 929584ce88d7e505b124bfa41d93db79
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-contracts
      summary: Add contract
      description: Add a contract for an employee
      operationId: time_create_contracts
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add contract
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-contract.schema.json
              description: A Schema for creating/updating timetracking employee contract in AbaNinja over API
              type: object
              properties:
                monday:
                  type: boolean
                tuesday:
                  type: boolean
                wednesday:
                  type: boolean
                thursday:
                  type: boolean
                friday:
                  type: boolean
                saturday:
                  type: boolean
                sunday:
                  type: boolean
                validFromDate:
                  type: string
                  format: date
                validToDate:
                  type:
                    - string
                    - 'null'
                  format: date
                employeeWorkModelUuid:
                  type: string
                  format: uuid
                employmentFactor:
                  type:
                    - number
                    - 'null'
                shortTimeWorkFactor:
                  type: number
                workingCountryCode:
                  type: string
                workingStateCode:
                  type: string
                hoursPerWeek:
                  type: number
                holidaysPerYear:
                  type: number
              required:
                - monday
                - tuesday
                - wednesday
                - thursday
                - friday
                - saturday
                - sunday
                - validFromDate
                - employeeWorkModelUuid
                - employmentFactor
                - shortTimeWorkFactor
                - workingCountryCode
                - workingStateCode
                - hoursPerWeek
                - holidaysPerYear
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Contract Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          monday:
                            type: boolean
                          tuesday:
                            type: boolean
                          wednesday:
                            type: boolean
                          thursday:
                            type: boolean
                          friday:
                            type: boolean
                          saturday:
                            type: boolean
                          sunday:
                            type: boolean
                          validFromDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          validToDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeWorkModelUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          employmentFactor:
                            type: number
                          shortTimeWorkFactor:
                            type: number
                          workingDays:
                            type: integer
                          hoursPerWeek:
                            type: number
                          holidaysPerYear:
                            type: number
                          workingStateCode:
                            type:
                              - string
                              - 'null'
                          workingStateName:
                            type:
                              - string
                              - 'null'
                          workingCountryCode:
                            type:
                              - string
                              - 'null'
                          workingCountryName:
                            type:
                              - string
                              - 'null'
                          isClosed:
                            type: boolean
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 8a3072a624ddcb324ae25209567be58a
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/flex-time:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get employee flex time
      description: Get the flex time for an employee
      operationId: time_list_flex_time
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date
            default: null
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Flex Time Resource
                        properties:
                          flexTime:
                            type: string
                          flexTimeRaw:
                            type: number
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: c21390db291e6d5d1ae29477789d2a65
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/holidays:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get employee holidays
      description: Get the holidays for an employee
      operationId: time_list_holidays
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date
            default: null
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Holidays Resource
                        properties:
                          unitName:
                            type: string
                          transferDays:
                            type:
                              - number
                              - 'null'
                          plannedDays:
                            type:
                              - number
                              - 'null'
                          contractDays:
                            type:
                              - number
                              - 'null'
                          usedDays:
                            type:
                              - number
                              - 'null'
                          balanceDays:
                            type:
                              - number
                              - 'null'
                          balanceEndDate:
                            type: string
                          correctionDays:
                            type:
                              - number
                              - 'null'
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 3a46b8ed88997d506864319837d30d3c
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/image:
    get:
      tags:
        - time-tracking-employees
      summary: Get image
      description: Get the image of an employee
      operationId: time_list_image
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Attachment Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          name:
                            type: string
                          size:
                            type: integer
                          mimeType:
                            type: string
                          url:
                            type:
                              - string
                              - 'null'
                            format: uri
                        type: object
                      status:
                        example: 200
                    type: object
        '204':
          description: No image exists
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: f6c9cad6e8b9bdd9e51b28a49aa84f15
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-employees
      summary: Upload image
      description: Upload an image for an employee
      operationId: time_create_image
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
              type: object
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Attachment Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          name:
                            type: string
                          size:
                            type: integer
                          mimeType:
                            type: string
                          url:
                            type:
                              - string
                              - 'null'
                            format: uri
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 8d572ba53f829414f6a2c3e7a71760be
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-employees
      summary: Delete image
      description: Delete the image of an employee
      operationId: time_delete_image
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 0bb68654d94316e2ba4e127350613b23
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/in-out:
    post:
      tags:
        - time-tracking-timestamps
      summary: Add timestamp
      description: Add a timestamp for an employee
      operationId: time_create_in_out
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add timestamp
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-inout.create.schema.json
              description: A Schema for creating timetracking employee in&out in AbaNinja over API
              type: object
              properties:
                date:
                  type: string
                  format: date
                startTime:
                  type: string
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                endTime:
                  type:
                    - string
                    - 'null'
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                comment:
                  type:
                    - string
                    - 'null'
                device:
                  type:
                    - string
                    - 'null'
              required:
                - date
                - startTime
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Timestamp Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          date:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            example: '2024-01-14T21:00:00'
                          startDevice:
                            type:
                              - string
                              - 'null'
                          endDevice:
                            type:
                              - string
                              - 'null'
                          type:
                            type: string
                            deprecated: true
                          comment:
                            type: string
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          duration:
                            properties:
                              hours:
                                type: string
                              minutes:
                                type: string
                            type:
                              - object
                              - 'null'
                            deprecated: true
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 0cd83c4d5ef19929390234334bc9dccd
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/target-time:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get employee target time
      description: Get the target time for an employee
      operationId: time_list_target_time
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date
            default: null
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Target Time Resource
                        properties:
                          contractTypeName:
                            type: string
                          employmentFactor:
                            type: number
                          hoursPerWeek:
                            type: number
                          employeeWorkModelName:
                            type:
                              - string
                              - 'null'
                          shortWorkPercent:
                            type:
                              - number
                              - 'null'
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 642c63f3e2aea79bbd41be92b944e5a6
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/time-corrections:
    get:
      tags:
        - time-tracking-corrections
      summary: Get corrections
      description: Get all corrections of an employee
      operationId: time_list_time_corrections
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Correction Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            accountUuid:
                              type: string
                              format: uuid
                            employeeUuid:
                              type: string
                              format: uuid
                            type:
                              description: 1 = Timecorrection, 2 = Holidaycorrection
                              type: integer
                              enum:
                                - 1
                                - 2
                            isClosed:
                              type: boolean
                            bookingDate:
                              type: string
                              format: date
                            bookingQty:
                              type: number
                            bookingUnit:
                              type: string
                              enum:
                                - hrs
                                - day
                            bookingText:
                              type:
                                - string
                                - 'null'
                          type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b4db589782d4c5689ed2e1082bddc125
      x-required-scopes:
        - time-tracking
    post:
      tags:
        - time-tracking-corrections
      summary: Add correction
      description: Add a correction for an employee
      operationId: time_create_time_corrections
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add correction
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-correction.schema.json
              description: A Schema for creating/updating timetracking employee correction in AbaNinja over API
              type: object
              properties:
                type:
                  type: integer
                  enum:
                    - 1
                    - 2
                  description: 1 = Timecorrection, 2 = Holidaycorrection
                bookingDate:
                  type: string
                  format: date
                bookingQty:
                  type: number
                bookingUnit:
                  type: string
                  enum:
                    - hrs
                    - day
                bookingText:
                  type:
                    - string
                    - 'null'
              required:
                - type
                - bookingDate
                - bookingQty
                - bookingUnit
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Correction Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          accountUuid:
                            type: string
                            format: uuid
                          employeeUuid:
                            type: string
                            format: uuid
                          type:
                            description: 1 = Timecorrection, 2 = Holidaycorrection
                            type: integer
                            enum:
                              - 1
                              - 2
                          isClosed:
                            type: boolean
                          bookingDate:
                            type: string
                            format: date
                          bookingQty:
                            type: number
                          bookingUnit:
                            type: string
                            enum:
                              - hrs
                              - day
                          bookingText:
                            type:
                              - string
                              - 'null'
                        type: object
                      status:
                        example: 201
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 2564739c9a52416ca615b5a9e97900be
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/settings/activity-types/{activityTypeUuid}:
    get:
      tags:
        - time-tracking-settings
      summary: Get activity type
      description: Get an activity type for an account
      operationId: time_get_activity_types
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: activityTypeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Type Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          activityTypeMasterUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          activityNumber:
                            type: string
                          unit:
                            type:
                              - string
                              - 'null'
                          isCount:
                            type: boolean
                          isBillable:
                            type: boolean
                          isHoliday:
                            type: boolean
                          activityGroup:
                            type: integer
                            enum:
                              - 1
                              - 2
                          isTimeCredit:
                            type: boolean
                          isShortTimeWork:
                            type: boolean
                          isFavorite:
                            type: boolean
                          used:
                            type: boolean
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 57636bc1b1a136cecc721961933ea178
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-settings
      summary: Update activity type
      description: Update an activity type for an account
      operationId: time_update_activity_types
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: activityTypeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update activity type
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-activitytype.schema.json
              description: A Schema for creating/updating timetracking employee activity type in AbaNinja over API
              type: object
              properties:
                activityNumber:
                  type: string
                  minLength: 1
                unit:
                  type: string
                  enum:
                    - min
                    - hrs
                    - day
                isCount:
                  type: boolean
                isBillable:
                  type: boolean
                isHoliday:
                  type: boolean
                activityGroup:
                  type: integer
                  enum:
                    - 1
                    - 2
                  description: 1 = Work, 2 = Absence
                isTimeCredit:
                  type: boolean
                isShortTimeWork:
                  type: boolean
                isFavorite:
                  type: boolean
                translations:
                  type: object
                  properties:
                    de:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    en:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    fr:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                    it:
                      type: object
                      properties:
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                  required:
                    - de
                    - en
                    - fr
                    - it
              required:
                - activityNumber
                - unit
                - isCount
                - isBillable
                - isHoliday
                - activityGroup
                - isTimeCredit
                - isShortTimeWork
                - translations
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Type Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          activityTypeMasterUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          activityNumber:
                            type: string
                          unit:
                            type:
                              - string
                              - 'null'
                          isCount:
                            type: boolean
                          isBillable:
                            type: boolean
                          isHoliday:
                            type: boolean
                          activityGroup:
                            type: integer
                            enum:
                              - 1
                              - 2
                          isTimeCredit:
                            type: boolean
                          isShortTimeWork:
                            type: boolean
                          isFavorite:
                            type: boolean
                          used:
                            type: boolean
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 753af06aa05ec48c446cc4ff726249a3
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-settings
      summary: Delete activity type
      description: Delete an activity type of an account
      operationId: time_delete_activity_types
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: activityTypeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 689aef5a30cf0ad57be05e7ee58b98c4
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/settings/work-models/{workModelUuid}:
    get:
      tags:
        - time-tracking-settings
      summary: Get work model
      description: Get a work model for an account
      operationId: time_get_work_models
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: workModelUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Work Model Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          isSystem:
                            type: boolean
                          hoursPerWeek:
                            type: number
                          holidaysPerYear:
                            type: number
                          monday:
                            type: boolean
                          tuesday:
                            type: boolean
                          wednesday:
                            type: boolean
                          thursday:
                            type: boolean
                          friday:
                            type: boolean
                          saturday:
                            type: boolean
                          sunday:
                            type: boolean
                          isUsed:
                            type: boolean
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 6d0198d1587f34aac5c4ea6889602949
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-settings
      summary: Update work model
      description: Update a work model for an account
      operationId: time_update_work_models
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: workModelUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update work model
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-work-model.schema.json
              description: A Schema for creating/updating timetracking employee work models in AbaNinja over API
              type: object
              properties:
                hoursPerWeek:
                  type: number
                holidaysPerYear:
                  type: number
                monday:
                  type: boolean
                tuesday:
                  type: boolean
                wednesday:
                  type: boolean
                thursday:
                  type: boolean
                friday:
                  type: boolean
                saturday:
                  type: boolean
                sunday:
                  type: boolean
                translations:
                  type: object
                  properties:
                    de:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                    en:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                    fr:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                    it:
                      type: object
                      properties:
                        name:
                          type:
                            - string
                            - 'null'
                          maxLength: 255
                        description:
                          type:
                            - string
                            - 'null'
                          maxLength: 5000
                  required:
                    - de
                    - en
                    - fr
                    - it
              required:
                - hoursPerWeek
                - holidaysPerYear
                - monday
                - tuesday
                - wednesday
                - thursday
                - friday
                - saturday
                - sunday
                - translations
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Work Model Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          isSystem:
                            type: boolean
                          hoursPerWeek:
                            type: number
                          holidaysPerYear:
                            type: number
                          monday:
                            type: boolean
                          tuesday:
                            type: boolean
                          wednesday:
                            type: boolean
                          thursday:
                            type: boolean
                          friday:
                            type: boolean
                          saturday:
                            type: boolean
                          sunday:
                            type: boolean
                          isUsed:
                            type: boolean
                          translations:
                            properties:
                              de:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              en:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              fr:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                              it:
                                properties:
                                  description:
                                    type: string
                                  name:
                                    type: string
                                type: object
                            type: object
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 6d7c143e1157af8c9bea2e1c2521115f
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-settings
      summary: Delete work model
      description: Delete a work model of an account
      operationId: time_delete_work_models
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: workModelUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 09d983fbda2e4f596601a9930e127150
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employee-organigram/graphs/org-chart/config:
    get:
      tags:
        - time-tracking-employee-organigram
      summary: Get base config for OrgChart
      description: Get base config for OrgChart
      operationId: time_list_config
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                title: Employee Organigram base config Resource
                properties:
                  endpoints:
                    required:
                      - list
                      - detail
                      - settings
                    properties:
                      list:
                        description: |-
                          The structure of this resource is mainly controlled externally by the orgChart application
                          Changes need to be discussed/checked first with orgChart frontend
                        type: string
                        format: url
                      detail:
                        type: string
                        format: url
                      settings:
                        type: string
                        format: url
                    type: object
                  faviconUrl:
                    type: string
                    format: url
                  imagePath:
                    type: string
                    format: url
                  logoUrl:
                    type:
                      - string
                      - 'null'
                    format: url
                  permissions:
                    type: array
                    items:
                      title: Employee organigram base config permission resource
                      properties:
                        key:
                          description: |-
                            The structure of this resource is mainly controlled externally by the orgChart application
                            Changes need to be discussed/checked first with orgChart frontend
                          type: string
                        mode:
                          type: array
                          items:
                            type: string
                            enum:
                              - READ
                              - WRITE
                      type: object
                type: object
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 013c4eb3046d1e83b1198c00ea7e29d1
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employee-organigram/graphs/org-chart/settings:
    get:
      tags:
        - time-tracking-employee-organigram
      summary: Get settings for OrgChart
      description: Get account-based settings for OrgChart
      operationId: time_list_settings
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 43d850a9a571a760877e4754bb0679cd
      x-required-scopes:
        - time-tracking
    put:
      tags:
        - time-tracking-employee-organigram
      summary: Replace settings for OrgChart
      description: Replace account-based settings for OrgChart
      operationId: time_update_settings
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/orgchart-settings.schema.json
              description: A schema for OrgChart settings
              type: object
              properties:
                version:
                  type: integer
                  const: 1
                chart:
                  type: object
                  properties:
                    initialMode:
                      type: string
                      enum:
                        - collapsed
                        - level-1
                        - level-2
                    nodeTypes:
                      type: object
                      propertyNames:
                        type: string
                        enum:
                          - orgUnit
                          - partner
                          - assistant
                          - employee
                      additionalProperties:
                        type: object
                        properties:
                          groupTitle:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          image:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          jobDescription:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          theme:
                            type: object
                            properties:
                              dark:
                                type: object
                                properties:
                                  tokens:
                                    type: object
                                    properties:
                                      backgroundColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeTextColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      fontColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                    required:
                                      - backgroundColor
                                      - badgeColor
                                      - badgeTextColor
                                      - fontColor
                                    additionalProperties: false
                                required:
                                  - tokens
                                additionalProperties: false
                              light:
                                type: object
                                properties:
                                  tokens:
                                    type: object
                                    properties:
                                      backgroundColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeTextColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      fontColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                    required:
                                      - backgroundColor
                                      - badgeColor
                                      - badgeTextColor
                                      - fontColor
                                    additionalProperties: false
                                required:
                                  - tokens
                                additionalProperties: false
                            required:
                              - dark
                              - light
                            additionalProperties: false
                        required:
                          - groupTitle
                          - image
                          - jobDescription
                          - theme
                        additionalProperties: false
                      required:
                        - orgUnit
                        - partner
                        - assistant
                        - employee
                  required:
                    - initialMode
                    - nodeTypes
                  additionalProperties: false
                features:
                  type: object
                  properties:
                    breadcrumb:
                      type: object
                      properties:
                        show:
                          type: boolean
                      required:
                        - show
                      additionalProperties: false
                    appBar:
                      type: object
                      properties:
                        collapse:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        search:
                          type: object
                          properties:
                            show:
                              type: boolean
                            groupTitle:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            jobDescription:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                          required:
                            - show
                            - groupTitle
                            - jobDescription
                          additionalProperties: false
                        theme:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        zoom:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                      required:
                        - collapse
                        - search
                        - theme
                        - zoom
                      additionalProperties: false
                    detailView:
                      type: object
                      properties:
                        show:
                          type: boolean
                        groupTitle:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        image:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        jobDescription:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                      required:
                        - show
                        - groupTitle
                        - image
                        - jobDescription
                      additionalProperties: false
                    sidebar:
                      type: object
                      properties:
                        show:
                          type: boolean
                        search:
                          type: object
                          properties:
                            show:
                              type: boolean
                            groupTitle:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            jobDescription:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                          required:
                            - show
                            - groupTitle
                            - jobDescription
                          additionalProperties: false
                      required:
                        - show
                        - search
                      additionalProperties: false
                  required:
                    - breadcrumb
                    - appBar
                    - detailView
                    - sidebar
                  additionalProperties: false
                theme:
                  type: object
                  properties:
                    dark:
                      type: object
                      properties:
                        tokens:
                          type: object
                          properties:
                            onPrimary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            primary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                          required:
                            - onPrimary
                            - primary
                          additionalProperties: false
                      required:
                        - tokens
                      additionalProperties: false
                    light:
                      type: object
                      properties:
                        tokens:
                          type: object
                          properties:
                            onPrimary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            primary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                          required:
                            - onPrimary
                            - primary
                          additionalProperties: false
                      required:
                        - tokens
                      additionalProperties: false
                  required:
                    - dark
                    - light
                  additionalProperties: false
              required:
                - version
                - chart
                - features
                - theme
              additionalProperties: false
              $defs:
                chartSettings:
                  type: object
                  properties:
                    initialMode:
                      type: string
                      enum:
                        - collapsed
                        - level-1
                        - level-2
                    nodeTypes:
                      type: object
                      propertyNames:
                        type: string
                        enum:
                          - orgUnit
                          - partner
                          - assistant
                          - employee
                      additionalProperties:
                        type: object
                        properties:
                          groupTitle:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          image:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          jobDescription:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          theme:
                            type: object
                            properties:
                              dark:
                                type: object
                                properties:
                                  tokens:
                                    type: object
                                    properties:
                                      backgroundColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeTextColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      fontColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                    required:
                                      - backgroundColor
                                      - badgeColor
                                      - badgeTextColor
                                      - fontColor
                                    additionalProperties: false
                                required:
                                  - tokens
                                additionalProperties: false
                              light:
                                type: object
                                properties:
                                  tokens:
                                    type: object
                                    properties:
                                      backgroundColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      badgeTextColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                      fontColor:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                    required:
                                      - backgroundColor
                                      - badgeColor
                                      - badgeTextColor
                                      - fontColor
                                    additionalProperties: false
                                required:
                                  - tokens
                                additionalProperties: false
                            required:
                              - dark
                              - light
                            additionalProperties: false
                        required:
                          - groupTitle
                          - image
                          - jobDescription
                          - theme
                        additionalProperties: false
                      required:
                        - orgUnit
                        - partner
                        - assistant
                        - employee
                  required:
                    - initialMode
                    - nodeTypes
                  additionalProperties: false
                showSettings:
                  type: object
                  properties:
                    show:
                      type: boolean
                  required:
                    - show
                  additionalProperties: false
                themeModeSettings:
                  type: object
                  properties:
                    tokens:
                      type: object
                      properties:
                        backgroundColor:
                          type: string
                          pattern: ^#[0-9a-fA-F]{6}$
                        badgeColor:
                          type: string
                          pattern: ^#[0-9a-fA-F]{6}$
                        badgeTextColor:
                          type: string
                          pattern: ^#[0-9a-fA-F]{6}$
                        fontColor:
                          type: string
                          pattern: ^#[0-9a-fA-F]{6}$
                      required:
                        - backgroundColor
                        - badgeColor
                        - badgeTextColor
                        - fontColor
                      additionalProperties: false
                  required:
                    - tokens
                  additionalProperties: false
                colorField:
                  type: string
                  pattern: ^#[0-9a-fA-F]{6}$
                featuresSettings:
                  type: object
                  properties:
                    breadcrumb:
                      type: object
                      properties:
                        show:
                          type: boolean
                      required:
                        - show
                      additionalProperties: false
                    appBar:
                      type: object
                      properties:
                        collapse:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        search:
                          type: object
                          properties:
                            show:
                              type: boolean
                            groupTitle:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            jobDescription:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                          required:
                            - show
                            - groupTitle
                            - jobDescription
                          additionalProperties: false
                        theme:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        zoom:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                      required:
                        - collapse
                        - search
                        - theme
                        - zoom
                      additionalProperties: false
                    detailView:
                      type: object
                      properties:
                        show:
                          type: boolean
                        groupTitle:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        image:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                        jobDescription:
                          type: object
                          properties:
                            show:
                              type: boolean
                          required:
                            - show
                          additionalProperties: false
                      required:
                        - show
                        - groupTitle
                        - image
                        - jobDescription
                      additionalProperties: false
                    sidebar:
                      type: object
                      properties:
                        show:
                          type: boolean
                        search:
                          type: object
                          properties:
                            show:
                              type: boolean
                            groupTitle:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            jobDescription:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                          required:
                            - show
                            - groupTitle
                            - jobDescription
                          additionalProperties: false
                      required:
                        - show
                        - search
                      additionalProperties: false
                  required:
                    - breadcrumb
                    - appBar
                    - detailView
                    - sidebar
                  additionalProperties: false
                searchSettings:
                  type: object
                  properties:
                    show:
                      type: boolean
                    groupTitle:
                      type: object
                      properties:
                        show:
                          type: boolean
                      required:
                        - show
                      additionalProperties: false
                    jobDescription:
                      type: object
                      properties:
                        show:
                          type: boolean
                      required:
                        - show
                      additionalProperties: false
                  required:
                    - show
                    - groupTitle
                    - jobDescription
                  additionalProperties: false
                themeSettings:
                  type: object
                  properties:
                    dark:
                      type: object
                      properties:
                        tokens:
                          type: object
                          properties:
                            onPrimary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            primary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                          required:
                            - onPrimary
                            - primary
                          additionalProperties: false
                      required:
                        - tokens
                      additionalProperties: false
                    light:
                      type: object
                      properties:
                        tokens:
                          type: object
                          properties:
                            onPrimary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            primary:
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                          required:
                            - onPrimary
                            - primary
                          additionalProperties: false
                      required:
                        - tokens
                      additionalProperties: false
                  required:
                    - dark
                    - light
                  additionalProperties: false
                primaryThemeSettings:
                  type: object
                  properties:
                    tokens:
                      type: object
                      properties:
                        onPrimary:
                          type: string
                          pattern: ^#[0-9a-fA-F]{6}$
                        primary:
                          type: string
                          pattern: ^#[0-9a-fA-F]{6}$
                      required:
                        - onPrimary
                        - primary
                      additionalProperties: false
                  required:
                    - tokens
                  additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                $id: https://api.abaninja.ch/schemas/2.0.0/orgchart-settings.schema.json
                description: A schema for OrgChart settings
                type: object
                properties:
                  version:
                    type: integer
                    const: 1
                  chart:
                    type: object
                    properties:
                      initialMode:
                        type: string
                        enum:
                          - collapsed
                          - level-1
                          - level-2
                      nodeTypes:
                        type: object
                        propertyNames:
                          type: string
                          enum:
                            - orgUnit
                            - partner
                            - assistant
                            - employee
                        additionalProperties:
                          type: object
                          properties:
                            groupTitle:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            image:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            jobDescription:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            theme:
                              type: object
                              properties:
                                dark:
                                  type: object
                                  properties:
                                    tokens:
                                      type: object
                                      properties:
                                        backgroundColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeTextColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        fontColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                      required:
                                        - backgroundColor
                                        - badgeColor
                                        - badgeTextColor
                                        - fontColor
                                      additionalProperties: false
                                  required:
                                    - tokens
                                  additionalProperties: false
                                light:
                                  type: object
                                  properties:
                                    tokens:
                                      type: object
                                      properties:
                                        backgroundColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeTextColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        fontColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                      required:
                                        - backgroundColor
                                        - badgeColor
                                        - badgeTextColor
                                        - fontColor
                                      additionalProperties: false
                                  required:
                                    - tokens
                                  additionalProperties: false
                              required:
                                - dark
                                - light
                              additionalProperties: false
                          required:
                            - groupTitle
                            - image
                            - jobDescription
                            - theme
                          additionalProperties: false
                        required:
                          - orgUnit
                          - partner
                          - assistant
                          - employee
                    required:
                      - initialMode
                      - nodeTypes
                    additionalProperties: false
                  features:
                    type: object
                    properties:
                      breadcrumb:
                        type: object
                        properties:
                          show:
                            type: boolean
                        required:
                          - show
                        additionalProperties: false
                      appBar:
                        type: object
                        properties:
                          collapse:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          search:
                            type: object
                            properties:
                              show:
                                type: boolean
                              groupTitle:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                              jobDescription:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                            required:
                              - show
                              - groupTitle
                              - jobDescription
                            additionalProperties: false
                          theme:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          zoom:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                        required:
                          - collapse
                          - search
                          - theme
                          - zoom
                        additionalProperties: false
                      detailView:
                        type: object
                        properties:
                          show:
                            type: boolean
                          groupTitle:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          image:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          jobDescription:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                        required:
                          - show
                          - groupTitle
                          - image
                          - jobDescription
                        additionalProperties: false
                      sidebar:
                        type: object
                        properties:
                          show:
                            type: boolean
                          search:
                            type: object
                            properties:
                              show:
                                type: boolean
                              groupTitle:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                              jobDescription:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                            required:
                              - show
                              - groupTitle
                              - jobDescription
                            additionalProperties: false
                        required:
                          - show
                          - search
                        additionalProperties: false
                    required:
                      - breadcrumb
                      - appBar
                      - detailView
                      - sidebar
                    additionalProperties: false
                  theme:
                    type: object
                    properties:
                      dark:
                        type: object
                        properties:
                          tokens:
                            type: object
                            properties:
                              onPrimary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                              primary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                            required:
                              - onPrimary
                              - primary
                            additionalProperties: false
                        required:
                          - tokens
                        additionalProperties: false
                      light:
                        type: object
                        properties:
                          tokens:
                            type: object
                            properties:
                              onPrimary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                              primary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                            required:
                              - onPrimary
                              - primary
                            additionalProperties: false
                        required:
                          - tokens
                        additionalProperties: false
                    required:
                      - dark
                      - light
                    additionalProperties: false
                required:
                  - version
                  - chart
                  - features
                  - theme
                additionalProperties: false
                $defs:
                  chartSettings:
                    type: object
                    properties:
                      initialMode:
                        type: string
                        enum:
                          - collapsed
                          - level-1
                          - level-2
                      nodeTypes:
                        type: object
                        propertyNames:
                          type: string
                          enum:
                            - orgUnit
                            - partner
                            - assistant
                            - employee
                        additionalProperties:
                          type: object
                          properties:
                            groupTitle:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            image:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            jobDescription:
                              type: object
                              properties:
                                show:
                                  type: boolean
                              required:
                                - show
                              additionalProperties: false
                            theme:
                              type: object
                              properties:
                                dark:
                                  type: object
                                  properties:
                                    tokens:
                                      type: object
                                      properties:
                                        backgroundColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeTextColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        fontColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                      required:
                                        - backgroundColor
                                        - badgeColor
                                        - badgeTextColor
                                        - fontColor
                                      additionalProperties: false
                                  required:
                                    - tokens
                                  additionalProperties: false
                                light:
                                  type: object
                                  properties:
                                    tokens:
                                      type: object
                                      properties:
                                        backgroundColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        badgeTextColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                        fontColor:
                                          type: string
                                          pattern: ^#[0-9a-fA-F]{6}$
                                      required:
                                        - backgroundColor
                                        - badgeColor
                                        - badgeTextColor
                                        - fontColor
                                      additionalProperties: false
                                  required:
                                    - tokens
                                  additionalProperties: false
                              required:
                                - dark
                                - light
                              additionalProperties: false
                          required:
                            - groupTitle
                            - image
                            - jobDescription
                            - theme
                          additionalProperties: false
                        required:
                          - orgUnit
                          - partner
                          - assistant
                          - employee
                    required:
                      - initialMode
                      - nodeTypes
                    additionalProperties: false
                  showSettings:
                    type: object
                    properties:
                      show:
                        type: boolean
                    required:
                      - show
                    additionalProperties: false
                  themeModeSettings:
                    type: object
                    properties:
                      tokens:
                        type: object
                        properties:
                          backgroundColor:
                            type: string
                            pattern: ^#[0-9a-fA-F]{6}$
                          badgeColor:
                            type: string
                            pattern: ^#[0-9a-fA-F]{6}$
                          badgeTextColor:
                            type: string
                            pattern: ^#[0-9a-fA-F]{6}$
                          fontColor:
                            type: string
                            pattern: ^#[0-9a-fA-F]{6}$
                        required:
                          - backgroundColor
                          - badgeColor
                          - badgeTextColor
                          - fontColor
                        additionalProperties: false
                    required:
                      - tokens
                    additionalProperties: false
                  colorField:
                    type: string
                    pattern: ^#[0-9a-fA-F]{6}$
                  featuresSettings:
                    type: object
                    properties:
                      breadcrumb:
                        type: object
                        properties:
                          show:
                            type: boolean
                        required:
                          - show
                        additionalProperties: false
                      appBar:
                        type: object
                        properties:
                          collapse:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          search:
                            type: object
                            properties:
                              show:
                                type: boolean
                              groupTitle:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                              jobDescription:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                            required:
                              - show
                              - groupTitle
                              - jobDescription
                            additionalProperties: false
                          theme:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          zoom:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                        required:
                          - collapse
                          - search
                          - theme
                          - zoom
                        additionalProperties: false
                      detailView:
                        type: object
                        properties:
                          show:
                            type: boolean
                          groupTitle:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          image:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                          jobDescription:
                            type: object
                            properties:
                              show:
                                type: boolean
                            required:
                              - show
                            additionalProperties: false
                        required:
                          - show
                          - groupTitle
                          - image
                          - jobDescription
                        additionalProperties: false
                      sidebar:
                        type: object
                        properties:
                          show:
                            type: boolean
                          search:
                            type: object
                            properties:
                              show:
                                type: boolean
                              groupTitle:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                              jobDescription:
                                type: object
                                properties:
                                  show:
                                    type: boolean
                                required:
                                  - show
                                additionalProperties: false
                            required:
                              - show
                              - groupTitle
                              - jobDescription
                            additionalProperties: false
                        required:
                          - show
                          - search
                        additionalProperties: false
                    required:
                      - breadcrumb
                      - appBar
                      - detailView
                      - sidebar
                    additionalProperties: false
                  searchSettings:
                    type: object
                    properties:
                      show:
                        type: boolean
                      groupTitle:
                        type: object
                        properties:
                          show:
                            type: boolean
                        required:
                          - show
                        additionalProperties: false
                      jobDescription:
                        type: object
                        properties:
                          show:
                            type: boolean
                        required:
                          - show
                        additionalProperties: false
                    required:
                      - show
                      - groupTitle
                      - jobDescription
                    additionalProperties: false
                  themeSettings:
                    type: object
                    properties:
                      dark:
                        type: object
                        properties:
                          tokens:
                            type: object
                            properties:
                              onPrimary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                              primary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                            required:
                              - onPrimary
                              - primary
                            additionalProperties: false
                        required:
                          - tokens
                        additionalProperties: false
                      light:
                        type: object
                        properties:
                          tokens:
                            type: object
                            properties:
                              onPrimary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                              primary:
                                type: string
                                pattern: ^#[0-9a-fA-F]{6}$
                            required:
                              - onPrimary
                              - primary
                            additionalProperties: false
                        required:
                          - tokens
                        additionalProperties: false
                    required:
                      - dark
                      - light
                    additionalProperties: false
                  primaryThemeSettings:
                    type: object
                    properties:
                      tokens:
                        type: object
                        properties:
                          onPrimary:
                            type: string
                            pattern: ^#[0-9a-fA-F]{6}$
                          primary:
                            type: string
                            pattern: ^#[0-9a-fA-F]{6}$
                        required:
                          - onPrimary
                          - primary
                        additionalProperties: false
                    required:
                      - tokens
                    additionalProperties: false
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 8d097edaef34f4bd02f2fa134ad30038
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/activities/{activityUuid}:
    get:
      tags:
        - time-tracking-activities
      summary: Get activity
      description: Get the activity of an employee
      operationId: time_get_activities
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: activityUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          accountUuid:
                            type: string
                            format: uuid
                          employeeUuid:
                            type: string
                            format: uuid
                          activityTypeUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          addressUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          addressDescription:
                            type: string
                            deprecated: true
                          productUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          productKey:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          productDescription:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          startDate:
                            type: string
                            format: date
                            deprecated: true
                          endDate:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T21:00:00'
                          halfDay:
                            type: boolean
                          description:
                            type:
                              - string
                              - 'null'
                          contractNoteId:
                            type:
                              - integer
                              - 'null'
                            deprecated: true
                          contractNoteUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          isInvoiced:
                            type: boolean
                            deprecated: true
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          contractNoteName:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          poNumber:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: f16a63369ed653063051cb4641e1d21e
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-activities
      summary: Update activity
      description: Update an activity for an employee
      operationId: time_update_activities
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: activityUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update activity
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-activity.schema.json
              description: A Schema for creating/updating timetracking employee activity in AbaNinja over API
              type: object
              properties:
                activityTypeUuid:
                  type: string
                  format: uuid
                startDate:
                  type: string
                  format: date
                endDate:
                  type: string
                  format: date
                startTime:
                  type: string
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                  example: '14:35'
                endTime:
                  type: string
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                  example: '15:45'
                halfDay:
                  type: boolean
                addressUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                contractNoteUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                productUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                description:
                  type:
                    - string
                    - 'null'
                  maxLength: 5000
              required:
                - activityTypeUuid
                - startDate
                - endDate
                - startTime
                - endTime
                - halfDay
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Activity Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          accountUuid:
                            type: string
                            format: uuid
                          employeeUuid:
                            type: string
                            format: uuid
                          activityTypeUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          addressUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          addressDescription:
                            type: string
                            deprecated: true
                          productUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          productKey:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          productDescription:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          startDate:
                            type: string
                            format: date
                            deprecated: true
                          endDate:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T21:00:00'
                          halfDay:
                            type: boolean
                          description:
                            type:
                              - string
                              - 'null'
                          contractNoteId:
                            type:
                              - integer
                              - 'null'
                            deprecated: true
                          contractNoteUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          isInvoiced:
                            type: boolean
                            deprecated: true
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          contractNoteName:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          poNumber:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: cc9c50be3263112eeaf66b1a4e9f3b0d
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-activities
      summary: Delete activity
      description: Delete an activity for an employee
      operationId: time_delete_activities
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: activityUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 9e2c66989f7d589d11a9a66571529e7f
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/attachments/{attachmentUuid}:
    delete:
      tags:
        - time-tracking-employees
      summary: Delete attachment
      description: Delete an attachment of an employee
      operationId: time_delete_attachments
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: attachmentUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: c00817a49685aa4dce335a10a6821268
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/closures/{closureUuid}:
    delete:
      tags:
        - time-tracking-closures
      summary: Delete closure
      description: Delete a closure for an employee
      operationId: time_delete_closures
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: closureUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 00570eda9902bbe79c217c65a6a5533e
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/closures/last-closure-date:
    get:
      tags:
        - time-tracking-closures
      summary: Get last closure date
      description: Get the date of the last closure of an employee
      operationId: time_list_last_closure_date
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Last Employee Closure Resource
                        properties:
                          timeTrackingStart:
                            type:
                              - string
                              - 'null'
                            format: date
                          lastClosureDate:
                            type:
                              - string
                              - 'null'
                            format: date
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 259b7587df2456c8a89dc25f5026b92f
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/contracts/{contractUuid}:
    get:
      tags:
        - time-tracking-contracts
      summary: Get contract
      description: Get the contract of an employee
      operationId: time_get_contracts
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: contractUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Contract Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          monday:
                            type: boolean
                          tuesday:
                            type: boolean
                          wednesday:
                            type: boolean
                          thursday:
                            type: boolean
                          friday:
                            type: boolean
                          saturday:
                            type: boolean
                          sunday:
                            type: boolean
                          validFromDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          validToDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeWorkModelUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          employmentFactor:
                            type: number
                          shortTimeWorkFactor:
                            type: number
                          workingDays:
                            type: integer
                          hoursPerWeek:
                            type: number
                          holidaysPerYear:
                            type: number
                          workingStateCode:
                            type:
                              - string
                              - 'null'
                          workingStateName:
                            type:
                              - string
                              - 'null'
                          workingCountryCode:
                            type:
                              - string
                              - 'null'
                          workingCountryName:
                            type:
                              - string
                              - 'null'
                          isClosed:
                            type: boolean
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: fbc0268831a6f29b8eaceadc86dce04b
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-contracts
      summary: Update contract
      description: Update a contract for an employee
      operationId: time_update_contracts
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: contractUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update contract
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-contract.schema.json
              description: A Schema for creating/updating timetracking employee contract in AbaNinja over API
              type: object
              properties:
                monday:
                  type: boolean
                tuesday:
                  type: boolean
                wednesday:
                  type: boolean
                thursday:
                  type: boolean
                friday:
                  type: boolean
                saturday:
                  type: boolean
                sunday:
                  type: boolean
                validFromDate:
                  type: string
                  format: date
                validToDate:
                  type:
                    - string
                    - 'null'
                  format: date
                employeeWorkModelUuid:
                  type: string
                  format: uuid
                employmentFactor:
                  type:
                    - number
                    - 'null'
                shortTimeWorkFactor:
                  type: number
                workingCountryCode:
                  type: string
                workingStateCode:
                  type: string
                hoursPerWeek:
                  type: number
                holidaysPerYear:
                  type: number
              required:
                - monday
                - tuesday
                - wednesday
                - thursday
                - friday
                - saturday
                - sunday
                - validFromDate
                - employeeWorkModelUuid
                - employmentFactor
                - shortTimeWorkFactor
                - workingCountryCode
                - workingStateCode
                - hoursPerWeek
                - holidaysPerYear
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Contract Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          monday:
                            type: boolean
                          tuesday:
                            type: boolean
                          wednesday:
                            type: boolean
                          thursday:
                            type: boolean
                          friday:
                            type: boolean
                          saturday:
                            type: boolean
                          sunday:
                            type: boolean
                          validFromDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          validToDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeWorkModelUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          employmentFactor:
                            type: number
                          shortTimeWorkFactor:
                            type: number
                          workingDays:
                            type: integer
                          hoursPerWeek:
                            type: number
                          holidaysPerYear:
                            type: number
                          workingStateCode:
                            type:
                              - string
                              - 'null'
                          workingStateName:
                            type:
                              - string
                              - 'null'
                          workingCountryCode:
                            type:
                              - string
                              - 'null'
                          workingCountryName:
                            type:
                              - string
                              - 'null'
                          isClosed:
                            type: boolean
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: d667079ba725dba456e9b6849a54cc41
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-contracts
      summary: Delete contract
      description: Delete a contract for an employee
      operationId: time_delete_contracts
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: contractUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 53cc89e4f75636cbc4272c58d7aebd6c
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/contracts/allowed-days:
    get:
      tags:
        - time-tracking-contracts
      summary: Get allowed contract days
      description: Get the allowed contract days of an employee
      operationId: time_list_allowed_days
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Contract Allowed Days Resource
                        properties:
                          earliestDate:
                            type: string
                            format: date
                          startDays:
                            type: array
                            items:
                              type: string
                              format: date
                          endDays:
                            type: array
                            items:
                              type: string
                              format: date
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 896ffb4d3aacbe9aec16dac989095f02
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/contracts/last-contract:
    get:
      tags:
        - time-tracking-contracts
      summary: Get last contract
      description: Get the last contract of an employee
      operationId: time_list_last_contract
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Contract Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          monday:
                            type: boolean
                          tuesday:
                            type: boolean
                          wednesday:
                            type: boolean
                          thursday:
                            type: boolean
                          friday:
                            type: boolean
                          saturday:
                            type: boolean
                          sunday:
                            type: boolean
                          validFromDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          validToDate:
                            type:
                              - string
                              - 'null'
                            format: date
                          employeeWorkModelUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          employmentFactor:
                            type: number
                          shortTimeWorkFactor:
                            type: number
                          workingDays:
                            type: integer
                          hoursPerWeek:
                            type: number
                          holidaysPerYear:
                            type: number
                          workingStateCode:
                            type:
                              - string
                              - 'null'
                          workingStateName:
                            type:
                              - string
                              - 'null'
                          workingCountryCode:
                            type:
                              - string
                              - 'null'
                          workingCountryName:
                            type:
                              - string
                              - 'null'
                          isClosed:
                            type: boolean
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 9e6169a025794a4bd7a807bf7c48dcc1
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/daily/{date}:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get daily entries
      description: Get the daily entries of an employee
      operationId: time_get_daily
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: path
          required: true
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Daily Entry Resource
                          properties:
                            uuid:
                              description: Represents the UUID for activityUuid or inOutUuid, depends on the typeId
                              type:
                                - string
                                - 'null'
                              format: uuid
                              deprecated: true
                            addressUuid:
                              type:
                                - string
                                - 'null'
                              format: uuid
                              deprecated: true
                            addressName:
                              type:
                                - string
                                - 'null'
                              deprecated: true
                            comment:
                              type:
                                - string
                                - 'null'
                              deprecated: true
                            contractNoteName:
                              type:
                                - string
                                - 'null'
                              deprecated: true
                            duration:
                              properties:
                                workDays:
                                  type: number
                                  deprecated: true
                                hours:
                                  type: number
                                  deprecated: true
                                minutes:
                                  type: number
                                  deprecated: true
                              type:
                                - object
                                - 'null'
                              deprecated: true
                            startDevice:
                              type:
                                - string
                                - 'null'
                              deprecated: true
                            endDevice:
                              type:
                                - string
                                - 'null'
                              deprecated: true
                            contractNoteId:
                              type:
                                - integer
                                - 'null'
                              deprecated: true
                            contractNoteUuid:
                              type:
                                - string
                                - 'null'
                              format: uuid
                              deprecated: true
                            startTime:
                              type:
                                - string
                                - 'null'
                              example: '07:00'
                              deprecated: true
                            endTime:
                              type:
                                - string
                                - 'null'
                              example: '19:00'
                              deprecated: true
                            typeName:
                              description: Translated activity name
                              type:
                                - string
                                - 'null'
                              deprecated: true
                            typeId:
                              description: 0 = in&out, 1 = activity, 2 = vacation
                              type:
                                - integer
                                - 'null'
                              deprecated: true
                              enum:
                                - 0
                                - 1
                                - 2
                            isDeletable:
                              type: boolean
                              deprecated: true
                          type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 89fee812f5589e3f3ef71ce972ec260b
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/in-out/{inOutUuid}:
    get:
      tags:
        - time-tracking-timestamps
      summary: Get timestamp
      description: Get the timestamp of an employee
      operationId: time_get_in_out
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: inOutUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Timestamp Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          date:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            example: '2024-01-14T21:00:00'
                          startDevice:
                            type:
                              - string
                              - 'null'
                          endDevice:
                            type:
                              - string
                              - 'null'
                          type:
                            type: string
                            deprecated: true
                          comment:
                            type: string
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          duration:
                            properties:
                              hours:
                                type: string
                              minutes:
                                type: string
                            type:
                              - object
                              - 'null'
                            deprecated: true
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 764fd6f263df2e4f83d2918c23782427
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-timestamps
      summary: Update timestamp
      description: Update a timestamp for an employee
      operationId: time_update_in_out
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: inOutUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update timestamp
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-inout.update.schema.json
              description: A Schema for updating timetracking employee in&out in AbaNinja over API
              type: object
              properties:
                date:
                  type: string
                  format: date
                startTime:
                  type: string
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                endTime:
                  type:
                    - string
                    - 'null'
                  pattern: ^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$
                comment:
                  type:
                    - string
                    - 'null'
                device:
                  type:
                    - string
                    - 'null'
              required: []
              dependentRequired:
                startTime:
                  - date
                endTime:
                  - date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Timestamp Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          date:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            example: '2024-01-14T21:00:00'
                          startDevice:
                            type:
                              - string
                              - 'null'
                          endDevice:
                            type:
                              - string
                              - 'null'
                          type:
                            type: string
                            deprecated: true
                          comment:
                            type: string
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          duration:
                            properties:
                              hours:
                                type: string
                              minutes:
                                type: string
                            type:
                              - object
                              - 'null'
                            deprecated: true
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b798b67d488129baff6f8aec0866c37b
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-timestamps
      summary: Delete timestamp
      description: Delete a timestamp for an employee
      operationId: time_delete_in_out
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: inOutUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 003d9e2f0547b7df9b6ee614efaf49a4
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/in-out/currently-open:
    get:
      tags:
        - time-tracking-timestamps
      summary: Get currently open timestamp
      description: Get the relevant currently open timestamp of an employee
      operationId: time_list_currently_open
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Timestamp Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          date:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            example: '2024-01-14T21:00:00'
                          startDevice:
                            type:
                              - string
                              - 'null'
                          endDevice:
                            type:
                              - string
                              - 'null'
                          type:
                            type: string
                            deprecated: true
                          comment:
                            type: string
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          duration:
                            properties:
                              hours:
                                type: string
                              minutes:
                                type: string
                            type:
                              - object
                              - 'null'
                            deprecated: true
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 200
                    type: object
        '204':
          description: Successful response, no timestamp found
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: dfad3b952e0cf0643b1bf81655f11474
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/in-out/open-days:
    get:
      tags:
        - time-tracking-timestamps
      summary: Get past days with open timestamps
      description: Get past days of an employee that have open timestamps
      operationId: time_list_open_days
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: query
          required: false
          schema:
            description: date to search until, defaults to yesterday
            type:
              - string
              - 'null'
            format: date
            default: null
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          type: string
                          format: date
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: b13f7871d77731aeba6183357f74d7f5
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/in-out/timestamp-event:
    post:
      tags:
        - time-tracking-timestamps
      summary: Add timestamp event
      description: Process a start or stop timestamp event
      operationId: time_create_timestamp_event
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Add timestamp event
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-inout-timestamp-event.create.schema.json
              description: A Schema for creating timestamp events in AbaNinja over the API
              type: object
              properties:
                dateTime:
                  type: string
                  description: ISO8601 local time with seconds reset
                  examples:
                    - '2024-01-14T20:20:00'
                eventType:
                  enum:
                    - START
                    - STOP
                device:
                  type:
                    - string
                    - 'null'
              required:
                - dateTime
                - eventType
      responses:
        '200':
          description: Successfully processed
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Timestamp Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          date:
                            type: string
                            format: date
                            deprecated: true
                          startTime:
                            type: string
                            deprecated: true
                          endTime:
                            type: string
                            deprecated: true
                          startDateTime:
                            description: ISO8601 local time
                            type: string
                            example: '2024-01-14T20:20:00'
                          endDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            example: '2024-01-14T21:00:00'
                          startDevice:
                            type:
                              - string
                              - 'null'
                          endDevice:
                            type:
                              - string
                              - 'null'
                          type:
                            type: string
                            deprecated: true
                          comment:
                            type: string
                          isClosed:
                            type: boolean
                          closedAt:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                          closedAtDateTime:
                            description: ISO8601 local time
                            type:
                              - string
                              - 'null'
                            format: date-time
                            example: '2024-01-31T13:00:00'
                          duration:
                            properties:
                              hours:
                                type: string
                              minutes:
                                type: string
                            type:
                              - object
                              - 'null'
                            deprecated: true
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 08497ea5dbbe9b21c9de65ee49c538c6
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/relations/available-parents:
    get:
      tags:
        - time-tracking-employee-organigram
      summary: Get available parents for employee
      description: Get available parent employees for an employee
      operationId: time_list_available_parents
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Employee Minimal Resource
                          properties:
                            uuid:
                              type: string
                              format: uuid
                            firstName:
                              type:
                                - string
                                - 'null'
                            lastName:
                              type:
                                - string
                                - 'null'
                            jobTitle:
                              type:
                                - string
                                - 'null'
                            employeeNumber:
                              type: string
                            employeeGroup:
                              properties:
                                uuid:
                                  type: string
                                  format: uuid
                                name:
                                  type: string
                              type: object
                          type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: f3dc1092b6cbda6c0d077a3fcb12a94f
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/relations/parent:
    get:
      tags:
        - time-tracking-employee-organigram
      summary: Get related parent for employee
      description: Get the related parent employee for an employee
      operationId: time_list_parent
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Parent Relation Resource
                        properties:
                          parentEmployeeUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          relationshipType:
                            type:
                              - string
                              - 'null'
                            enum:
                              - assistant
                              - employee
                              - partner
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 080012a505ed471b85261543e201f47f
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-employee-organigram
      summary: Set related parent for employee
      description: Set the related parent employee for an employee
      operationId: time_update_parent
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Set parent relation
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-set-parent-relation.schema.json
              description: A Schema for setting the parent relation of an employee
              type: object
              properties:
                parentEmployeeUuid:
                  type:
                    - string
                    - 'null'
                  format: uuid
                relationshipType:
                  type:
                    - string
                    - 'null'
                  enum:
                    - null
                    - assistant
                    - partner
                    - employee
              required:
                - parentEmployeeUuid
              additionalProperties: false
              if:
                properties:
                  parentEmployeeUuid:
                    type: 'null'
              then:
                properties:
                  relationshipType:
                    type: 'null'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Employee Parent Relation Resource
                        properties:
                          parentEmployeeUuid:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          relationshipType:
                            type:
                              - string
                              - 'null'
                            enum:
                              - assistant
                              - employee
                              - partner
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 468032f0dada7b2624f1930a6ee70764
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/time-corrections/{correctionUuid}:
    get:
      tags:
        - time-tracking-corrections
      summary: Get correction
      description: Get the correction of an employee
      operationId: time_get_time_corrections
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: correctionUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Correction Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          accountUuid:
                            type: string
                            format: uuid
                          employeeUuid:
                            type: string
                            format: uuid
                          type:
                            description: 1 = Timecorrection, 2 = Holidaycorrection
                            type: integer
                            enum:
                              - 1
                              - 2
                          isClosed:
                            type: boolean
                          bookingDate:
                            type: string
                            format: date
                          bookingQty:
                            type: number
                          bookingUnit:
                            type: string
                            enum:
                              - hrs
                              - day
                          bookingText:
                            type:
                              - string
                              - 'null'
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 799d41d06832f9114f74c907f42a3a79
      x-required-scopes:
        - time-tracking
    patch:
      tags:
        - time-tracking-corrections
      summary: Update correction
      description: Update a correction for an employee
      operationId: time_update_time_corrections
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: correctionUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Update correction
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              $id: https://api.abaninja.ch/schemas/2.0.0/time-employee-correction.schema.json
              description: A Schema for creating/updating timetracking employee correction in AbaNinja over API
              type: object
              properties:
                type:
                  type: integer
                  enum:
                    - 1
                    - 2
                  description: 1 = Timecorrection, 2 = Holidaycorrection
                bookingDate:
                  type: string
                  format: date
                bookingQty:
                  type: number
                bookingUnit:
                  type: string
                  enum:
                    - hrs
                    - day
                bookingText:
                  type:
                    - string
                    - 'null'
              required:
                - type
                - bookingDate
                - bookingQty
                - bookingUnit
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Correction Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                          accountUuid:
                            type: string
                            format: uuid
                          employeeUuid:
                            type: string
                            format: uuid
                          type:
                            description: 1 = Timecorrection, 2 = Holidaycorrection
                            type: integer
                            enum:
                              - 1
                              - 2
                          isClosed:
                            type: boolean
                          bookingDate:
                            type: string
                            format: date
                          bookingQty:
                            type: number
                          bookingUnit:
                            type: string
                            enum:
                              - hrs
                              - day
                          bookingText:
                            type:
                              - string
                              - 'null'
                        type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: f02c3457e41754a17c098bdee3bb024f
      x-required-scopes:
        - time-tracking
    delete:
      tags:
        - time-tracking-corrections
      summary: Delete correction
      description: Delete a correction for an employee
      operationId: time_delete_time_corrections
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: correctionUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Successful response
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 236c4ab59a5ca1b2166d6d2febffba0e
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/activities/{activityUuid}/actions:
    get:
      tags:
        - time-tracking-activities
      summary: Get single actions
      description: Get the single actions of an activity
      operationId: time_list_actions
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: activityUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        type: array
                        items:
                          title: Single Employee Activity Action Resource
                          properties:
                            key:
                              type: string
                            description:
                              type: string
                            isApplicable:
                              type: boolean
                          type: object
                      status:
                        example: 200
                    type: object
        '400':
          description: Bad request or validation error
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 010c7b7da19dd6a55414a6980735faa9
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/daily/{date}/closed:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Check if day is closed
      description: Checks if the day is closed of an employee
      operationId: time_list_closed
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: path
          required: true
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Day Closed Resource
                        properties:
                          isClosed:
                            type: boolean
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: dea50d011820a290b49719ef82842972
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/daily/{date}/open-in-out:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get daily open in out
      description: Get the daily open in out of an employee
      operationId: time_list_open_in_out
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: path
          required: true
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Daily Open In Out Resource
                        properties:
                          uuid:
                            type: string
                            format: uuid
                            deprecated: true
                          startTime:
                            type: string
                            example: '19:00'
                            deprecated: true
                          comment:
                            type:
                              - string
                              - 'null'
                            deprecated: true
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 926aea6189b0155febd70dcdb7ff3e53
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/daily/{date}/target:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get daily target
      description: Get the daily target of an employee
      operationId: time_list_target
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: path
          required: true
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Daily Target Resource
                        properties:
                          targetTime:
                            description: target time in minutes
                            type: number
                          workedTime:
                            description: worked time in minutes
                            type: number
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 60131d4801c917c49aab7172bc28ffa0
      x-required-scopes:
        - time-tracking
  /accounts/{accountUuid}/time/v2/employees/{employeeUuid}/daily/{date}/totals:
    get:
      tags:
        - time-tracking-employee-statistics
      summary: Get daily total
      description: Get the daily total of an employee
      operationId: time_list_totals
      parameters:
        - name: accountUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: employeeUuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: path
          required: true
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for successful requests
                    required:
                      - data
                      - message
                      - status
                    properties:
                      data:
                        title: data
                      message:
                        title: message
                        type: string
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                      meta:
                        title: meta
                        type:
                          - object
                          - 'null'
                    type: object
                  - properties:
                      data:
                        title: Daily Total Resource
                        properties:
                          targetTime:
                            properties:
                              hours:
                                type: integer
                                deprecated: true
                              minutes:
                                type: number
                                deprecated: true
                            type:
                              - object
                              - 'null'
                            deprecated: true
                          targetTimeDifference:
                            properties:
                              hours:
                                type: integer
                                deprecated: true
                              minutes:
                                type: number
                                deprecated: true
                            type:
                              - object
                              - 'null'
                            deprecated: true
                          sectionTotal:
                            properties:
                              activity:
                                properties:
                                  hours:
                                    type: integer
                                    deprecated: true
                                  minutes:
                                    type: number
                                    deprecated: true
                                type:
                                  - object
                                  - 'null'
                                deprecated: true
                              vacation:
                                properties:
                                  hours:
                                    type: integer
                                    deprecated: true
                                  minutes:
                                    type: number
                                    deprecated: true
                                type:
                                  - object
                                  - 'null'
                                deprecated: true
                              inOut:
                                properties:
                                  hours:
                                    type: integer
                                    deprecated: true
                                  minutes:
                                    type: number
                                    deprecated: true
                                type:
                                  - object
                                  - 'null'
                                deprecated: true
                              billingActivity:
                                properties:
                                  hours:
                                    type: integer
                                    deprecated: true
                                  minutes:
                                    type: number
                                    deprecated: true
                                type:
                                  - object
                                  - 'null'
                                deprecated: true
                              absence:
                                properties:
                                  hours:
                                    type: integer
                                    deprecated: true
                                  minutes:
                                    type: number
                                    deprecated: true
                                type:
                                  - object
                                  - 'null'
                                deprecated: true
                              shortWork:
                                properties:
                                  hours:
                                    type: integer
                                    deprecated: true
                                  minutes:
                                    type: number
                                    deprecated: true
                                type:
                                  - object
                                  - 'null'
                                deprecated: true
                              holidays:
                                type: array
                                items:
                                  properties:
                                    name:
                                      type: string
                                      deprecated: true
                                    duration:
                                      properties:
                                        workDays:
                                          type: number
                                          deprecated: true
                                      type: object
                                      deprecated: true
                                  type: object
                                deprecated: true
                            type: object
                            deprecated: true
                          flexTime:
                            properties:
                              hours:
                                type: integer
                                deprecated: true
                              minutes:
                                type: number
                                deprecated: true
                            type:
                              - object
                              - 'null'
                            deprecated: true
                        type: object
                      status:
                        example: 200
                    type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                allOf:
                  - description: The response format of most endpoints for erronous requests
                    required:
                      - detail
                      - type
                      - message
                      - status
                    properties:
                      detail:
                        title: details
                      type:
                        title: type
                        type: string
                      requestUuid:
                        title: requestUuid
                        type: string
                        format: uuid
                      path:
                        title: path
                        type: string
                      message:
                        title: message
                        type:
                          - string
                          - 'null'
                      status:
                        title: status
                        description: HTTP status code
                        type: integer
                    type: object
                  - properties: {}
      security:
        - ApiToken:
            - https://api.abaninja.ch/auth/time-tracking
      x-legacy-operation-id: 24d075b03e720bbf1455133890660cdd
      x-required-scopes:
        - time-tracking
components:
  securitySchemes:
    ApiToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Create tokens in Settings > API Token.
