Clockify Time entry API

The Time entry API from Clockify — 6 operation(s) for time entry.

OpenAPI Specification

clockify-time-entry-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  description: "## Introduction\nBy using this REST API, you can easily integrate Clockify with your own add-ons, push and pull data\nbetween Clockify and other tools, and create custom add-ons on [CAKE.com Marketplace](https://marketplace.cake.com).\nWhether you’re looking to automate time tracking, generate custom reports, or build other custom\nintegrations, our API provides the flexibility and power you need to get the job done. If you\nhave any questions or run into any issues while using our API, don’t hesitate to reach out to us for help.\nYou can also post questions on Stack Overflow with the Clockify tag to get help from the community.\n## Authentication\nTo authenticate your requests to your API, make sure to include either the ‘X-Api-Key’ or the\n‘X-Addon-Token’ in the request header, containing your API or Addon key. If your workspace is\non a subdomain (e.g. subdomain.clockify.me), you’ll need to generate a new API key in your\nProfile Settings that will work specifically for that workspace. This ensures that you’re\naccessing data from the correct workspace and helps maintain the security of your data.\n## Webhooks\nWebhooks can enhance your workflow by keeping your add-on up-to-date with the latest changes in\nClockify. With Clockify’s webhooks you can receive real-time notifications when certain events such as\nstarting a timer or deleting a time entry occur in Clockify.\nDepending on the workspace plan, workspace owners and admins can create:\n\n* Up to 3 webhooks on **FREE** plan\n* Up to 10 webhooks per user, with a total of 100 webhooks per entire workspace\non **BASIC**, **STANDARD** and **PRO** plans\n* Up to 100 webhooks per user, with a total of 300 webhooks per entire workspace on **ENTERPRISE** plan\n\n## Rate limiting\nOur REST API has a specific rate limit of 50 requests per second (by addon on one workspace) when\naccessed using X-Addon-Token. Exceeding this limit will result in an error message with the description\n\"Too many requests\".\n## Pagination\nOur REST API supports pagination for all synchronous GET endpoints that retrieve lists of entities.\nWhen an endpoint accepts the `page` and `pageSize` query parameters, it will return a paginated response.\n\nTo control the data returned in a paginated request, you can use the following optional query parameters.\n\n- **page** (integer): The page number you wish to retrieve. This is 1-indexed. If this parameter is omitted,\nthe API will default to the first page (page=1).\n- **pageSize** (integer): The number of items to include on each page. If this parameter is omitted,\na default page size will be used.\n\nEvery response from an endpoint that supports these parameters will include a custom `Last-Page` header.\nThis header provides a simple way to determine if you have reached the end of the data set.\n\n- **true:** The current page is the final page; no more data is available.\n- **false:** Additional pages can be fetched.\n## API URLs\nRefer to the list on what URL to use base on the subdomain and data region settings of your workspace.\n* Global - can be used by workspaces with or without subdomain.\n    * Regular: https://api.clockify.me/api/v1/file/image\n    * Reports: https://reports.api.clockify.me/v1/workspaces/{workspaceId}/reports/detailed\n* Regional\n    * Non-subdomain\n        * Regular: https://euc1.clockify.me/api/v1/file/image\n        * Reports: https://use2.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n    * Subdomain\n        * Regular: https://euc1.clockify.me/api/v1/file/image\n        * Reports: https://yoursubdomainname.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n* Developer\n    * Regular: https://developer.clockify.me/api/v1/file/image\n    * Reports: https://developer.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n## Regional Server Prefixes\nIf your workspace is in a specific region, you need to change your URL prefix to access v1 API endpoints.\nFor example, this is how **backend** api [v1/file/image](#tag/User/operation/uploadImage) endpoint\nwould look in EU region:\n[https://euc1.clockify.me/api/v1/file/image](https://euc1.clockify.me)\n\nBelow are the available regional server prefixes:\n* **EU (Germany)**: euc1\n* **USA**: use2\n* **UK**: euw2\n* **AU**: apse2\n\n\n## Breaking changes\nBreaking changes in APIs are modifications that disrupt existing integrations,\nrequiring users to update their applications to maintain functionality.\nThese changes can lead to failures or unexpected results if not addressed.\nSee the list of [breaking changes](breaking-changes/).\n\n## Experimental APIs\nThe experimental API has been thoroughly tested and is ready for use in production. However, please note that user feedback may lead to changes in the API’s structure or functionality. If you choose to use the experimental API, be prepared to modify your application code accordingly to accommodate any updates."
  title: Clockify Approval Time entry API
  version: v1
  x-logo:
    altText: Clockify logo
    url: https://clockify.me/downloads/clockify_logo_primary_black_margin.png
tags:
- name: Time entry
  x-displayName: Time entry
paths:
  /v1/workspaces/{workspaceId}/time-entries:
    servers:
    - url: https://api.clockify.me/api
    post:
      operationId: createTimeEntry
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTimeEntryRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntryDtoImplV1'
          description: Created
      summary: Add a new time entry
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/time-entries/invoiced:
    servers:
    - url: https://api.clockify.me/api
    patch:
      operationId: updateInvoicedStatus
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateInvoicedStatusRequest'
        required: true
      responses:
        '200':
          description: OK
      summary: Mark time entries as invoiced
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/time-entries/status/in-progress:
    servers:
    - url: https://api.clockify.me/api
    get:
      operationId: getInProgressTimeEntries
      parameters:
      - in: path
        name: workspaceId
        required: true
        schema:
          type: string
      - in: query
        name: page
        required: false
        schema:
          minimum: 1
          type: integer
          format: int32
          default: 1
      - in: query
        name: page-size
        required: false
        schema:
          maximum: 1000
          minimum: 1
          type: integer
          format: int32
          default: 10
      responses:
        '200':
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TimeEntryWithRatesDtoV1'
          description: OK
      summary: Get all in progress time entries on a workspace
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/time-entries/{id}:
    servers:
    - url: https://api.clockify.me/api
    delete:
      operationId: deleteTimeEntry
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a time entry identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: path
        name: id
        required: true
        schema:
          type: string
          description: Represents a time entry identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      responses:
        '204':
          description: No Content
      summary: Delete a time entry from a workspace
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    get:
      operationId: getTimeEntry
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a time entry identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: path
        name: id
        required: true
        schema:
          type: string
          description: Represents a time entry identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      - description: Flag to set whether to include additional information of a time entry or not.
        in: query
        name: hydrated
        required: false
        schema:
          type: boolean
          description: Flag to set whether to include additional information of a time entry or not.
          default: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntryWithRatesDtoV1'
          description: OK
      summary: Get a specific time entry on a workspace
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    put:
      operationId: updateTimeEntry
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a time entry identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: path
        name: id
        required: true
        schema:
          type: string
          description: Represents a time entry identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTimeEntryRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntryDtoImplV1'
          description: OK
      summary: Update time entry on a workspace
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/user/{userId}/time-entries:
    servers:
    - url: https://api.clockify.me/api
    delete:
      operationId: deleteMany
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a user identifier across the system.
        example: 5a0ab5acb07987125438b60f
        in: path
        name: userId
        required: true
        schema:
          type: string
          description: Represents a user identifier across the system.
          example: 5a0ab5acb07987125438b60f
      - description: Represents a list of time entry ids to delete.
        example: 5a0ab5acb07987125438b60f
        in: query
        name: time-entry-ids
        required: true
        schema:
          type: array
          description: Represents a list of time entry ids to delete.
          example: 5a0ab5acb07987125438b60f
          items:
            type: string
            description: Represents a list of time entry ids to delete.
            example: 5a0ab5acb07987125438b60f
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TimeEntryDtoImplV1'
          description: OK
      summary: Delete all time entries for a user on a workspace
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    get:
      operationId: getTimeEntries
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a user identifier across the system.
        example: 5a0ab5acb07987125438b60f
        in: path
        name: userId
        required: true
        schema:
          type: string
          description: Represents a user identifier across the system.
          example: 5a0ab5acb07987125438b60f
      - description: Represents a term for searching time entries by description.
        example: Description keywords
        in: query
        name: description
        required: false
        schema:
          type: string
          description: Represents a term for searching time entries by description.
          example: Description keywords
      - description: Represents a start date in the yyyy-MM-ddThh:mm:ssZ format.
        example: '2020-01-01T00:00:00Z'
        in: query
        name: start
        required: false
        schema:
          type: string
          description: Represents a start date in the yyyy-MM-ddThh:mm:ssZ format.
          example: '2020-01-01T00:00:00Z'
      - description: Represents an end date in the yyyy-MM-ddThh:mm:ssZ format.
        example: '2021-01-01T00:00:00Z'
        in: query
        name: end
        required: false
        schema:
          type: string
          description: Represents an end date in the yyyy-MM-ddThh:mm:ssZ format.
          example: '2021-01-01T00:00:00Z'
      - description: If provided, you'll get a filtered list of time entries that matches the provided string in their project id.
        example: 5b641568b07987035750505e
        in: query
        name: project
        required: false
        schema:
          type: string
          description: If provided, you'll get a filtered list of time entries that matches the provided string in their project id.
          example: 5b641568b07987035750505e
      - description: If provided, you'll get a filtered list of time entries that matches the provided string in their task id.
        example: 64c777ddd3fcab07cfbb210c
        in: query
        name: task
        required: false
        schema:
          type: string
          description: If provided, you'll get a filtered list of time entries that matches the provided string in their task id.
          example: 64c777ddd3fcab07cfbb210c
      - description: If provided, you'll get a filtered list of time entries that matches the provided string(s) in their tag id(s).
        example:
        - 5e4117fe8c625f38930d57b7
        - 7e4117fe8c625f38930d57b8
        in: query
        name: tags
        required: false
        schema:
          uniqueItems: true
          type: array
          description: If provided, you'll get a filtered list of time entries that matches the provided string(s) in their tag id(s).
          example:
          - 5e4117fe8c625f38930d57b7
          - 7e4117fe8c625f38930d57b8
          items:
            type: string
            description: If provided, you'll get a filtered list of time entries that matches the provided string(s) in their tag id(s).
            example: '["5e4117fe8c625f38930d57b7","7e4117fe8c625f38930d57b8"]'
      - description: Flag to set whether to only get time entries which have a project.
        in: query
        name: project-required
        required: false
        schema:
          type: boolean
          description: Flag to set whether to only get time entries which have a project.
          default: false
      - description: Flag to set whether to only get time entries which have tasks.
        in: query
        name: task-required
        required: false
        schema:
          type: boolean
          description: Flag to set whether to only get time entries which have tasks.
          default: false
      - description: Flag to set whether to include additional information on time entries or not.
        in: query
        name: hydrated
        required: false
        schema:
          type: boolean
          description: Flag to set whether to include additional information on time entries or not.
          default: false
      - description: Page number.
        example: 1
        in: query
        name: page
        required: false
        schema:
          type: integer
          description: Page number.
          format: int32
          example: 1
          default: 1
      - description: Page size.
        example: 50
        in: query
        name: page-size
        required: false
        schema:
          minimum: 1
          type: integer
          description: Page size.
          format: int32
          example: 50
          default: 50
      - description: Flag to set whether to filter only in progress time entries.
        in: query
        name: in-progress
        required: false
        schema:
          type: string
      - description: Valid yyyy-MM-ddThh:mm:ssZ format date. If provided, filters results within the week before the datetime provided and only those entries with assigned project or task.
        example: '2020-01-01T00:00:00Z'
        in: query
        name: get-week-before
        required: false
        schema:
          type: string
          description: Valid yyyy-MM-ddThh:mm:ssZ format date. If provided, filters results within the week before the datetime provided and only those entries with assigned project or task.
          example: '2020-01-01T00:00:00Z'
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TimeEntryWithRatesDtoV1'
          description: OK
      summary: Get time entries for a user on a workspace
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    patch:
      operationId: stopRunningTimeEntry
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a user identifier across the system.
        example: 5a0ab5acb07987125438b60f
        in: path
        name: userId
        required: true
        schema:
          type: string
          description: Represents a user identifier across the system.
          example: 5a0ab5acb07987125438b60f
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StopTimeEntryRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntryDtoImplV1'
          description: OK
      summary: Stop a currently running timer on a workspace for a user
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    post:
      operationId: createForOthers
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a user identifier across the system.
        example: 5a0ab5acb07987125438b60f
        in: path
        name: userId
        required: true
        schema:
          type: string
          description: Represents a user identifier across the system.
          example: 5a0ab5acb07987125438b60f
      - description: Represents a time entry identifier across the system.
        example: 64c777ddd3fcab07cfbb210c
        in: query
        name: from-entry
        required: false
        schema:
          type: string
          description: Represents a time entry identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTimeEntryRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntryDtoImplV1'
          description: Created
      summary: Add a new time entry for another user on workspace
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
    put:
      operationId: replaceMany
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a user identifier across the system.
        example: 5a0ab5acb07987125438b60f
        in: path
        name: userId
        required: true
        schema:
          type: string
          description: Represents a user identifier across the system.
          example: 5a0ab5acb07987125438b60f
      - description: If set to true, results will contain additional information about the time entry.
        in: query
        name: hydrated
        required: false
        schema:
          type: boolean
          description: If set to true, results will contain additional information about the time entry.
          default: false
      requestBody:
        content:
          application/json:
            schema:
              minItems: 1
              type: array
              items:
                $ref: '#/components/schemas/UpdateTimeEntryBulkRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TimeEntryDtoV1'
          description: OK
      summary: Bulk edit time entries
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
  /v1/workspaces/{workspaceId}/user/{userId}/time-entries/{id}/duplicate:
    servers:
    - url: https://api.clockify.me/api
    post:
      operationId: duplicateTimeEntry
      parameters:
      - description: Represents a workspace identifier across the system.
        example: 64a687e29ae1f428e7ebe303
        in: path
        name: workspaceId
        required: true
        schema:
          type: string
          description: Represents a workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
      - description: Represents a user identifier across the system.
        example: 5a0ab5acb07987125438b60f
        in: path
        name: userId
        required: true
        schema:
          type: string
          description: Represents a user identifier across the system.
          example: 5a0ab5acb07987125438b60f
      - description: Represents a time entry identifier across the system.
        example: 8j39fn9307hh5125439g2ast
        in: path
        name: id
        required: true
        schema:
          type: string
          description: Represents a time entry identifier across the system.
          example: 8j39fn9307hh5125439g2ast
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntryDtoImplV1'
          description: Created
      summary: Duplicate a time entry
      tags:
      - Time entry
      security:
      - ApiKeyAuth: []
      - AddonKeyAuth: []
components:
  schemas:
    RateDtoV1:
      type: object
      properties:
        amount:
          type: integer
          description: Represents an amount as integer.
          format: int32
          example: 10500
        currency:
          type: string
          description: Represents a currency.
          example: USD
      description: Represents cost rate object.
    TimeEntryDtoV1:
      type: object
      properties:
        billable:
          type: boolean
          description: Indicates whether a time entry is billable.
          default: false
        customFieldValues:
          type: array
          description: Represents a list of custom field value objects.
          items:
            $ref: '#/components/schemas/CustomFieldValueDtoV1'
        description:
          type: string
          description: Represents time entry description.
          example: This is a sample time entry description.
        id:
          type: string
          description: Represents time entry identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
        isLocked:
          type: boolean
          description: Represents whether time entry is locked for modification.
          default: false
        kioskId:
          type: string
          description: Represents kiosk identifier across the system.
          example: 94c777ddd3fcab07cfbb210d
        projectId:
          type: string
          description: Represents project identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        tagIds:
          type: array
          description: Represents a list of tag identifiers across the system.
          example:
          - 321r77ddd3fcab07cfbb567y
          - 44x777ddd3fcab07cfbb88f
          items:
            type: string
            description: Represents a list of tag identifiers across the system.
            example: '["321r77ddd3fcab07cfbb567y","44x777ddd3fcab07cfbb88f"]'
        taskId:
          type: string
          description: Represents task identifier across the system.
          example: 54m377ddd3fcab07cfbb432w
        timeInterval:
          $ref: '#/components/schemas/TimeIntervalDtoV1'
        type:
          type: string
          description: Represents a time entry type enum.
          example: BREAK
          enum:
          - REGULAR
          - BREAK
          - HOLIDAY
          - TIME_OFF
        userId:
          type: string
          description: Represents user identifier across the system.
          example: 5a0ab5acb07987125438b60f
        workspaceId:
          type: string
          description: Represents workspace identifier across the system.
          example: 64a687e29ae1f428e7ebe303
    UpdateTimeEntryBulkRequest:
      required:
      - id
      type: object
      properties:
        billable:
          type: boolean
          description: Indicates whether a time entry is billable or not.
          default: false
        customFields:
          maxItems: 50
          minItems: 0
          type: array
          items:
            $ref: '#/components/schemas/UpdateCustomFieldRequest'
        description:
          maxLength: 3000
          minLength: 0
          type: string
          description: Represents a time entry description.
          example: This is a sample time entry description.
        end:
          type: string
          description: Represents an end date in the yyyy-MM-ddThh:mm:ssZ format.
          format: date-time
          example: '2021-01-01T00:00:00Z'
        id:
          minLength: 1
          type: string
          description: Represents a time entry identifier across the system.
          example: 64c777ddd3fcab07cfbb210c
        projectId:
          type: string
          description: Represents a project identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        start:
          type: string
          description: Represents a start date in the yyyy-MM-ddThh:mm:ssZ format.
          format: date-time
          example: '2020-01-01T00:00:00Z'
        tagIds:
          type: array
          description: Represents a list of tag ids.
          example:
          - 321r77ddd3fcab07cfbb567y
          - 44x777ddd3fcab07cfbb88f
          items:
            type: string
            description: Represents a list of tag ids.
            example: '["321r77ddd3fcab07cfbb567y","44x777ddd3fcab07cfbb88f"]'
        taskId:
          type: string
          description: Represents a task identifier across the system.
          example: 54m377ddd3fcab07cfbb432w
        type:
          type: string
          enum:
          - REGULAR
          - BREAK
    UpdateInvoicedStatusRequest:
      required:
      - invoiced
      - timeEntryIds
      type: object
      properties:
        invoiced:
          type: boolean
          description: Indicates whether time entry is invoiced or not.
          default: false
        timeEntryIds:
          minItems: 1
          uniqueItems: true
          type: array
          description: Represents a list of invoiced time entry ids
          example:
          - 54m377ddd3fcab07cfbb432w
          - 25b687e29ae1f428e7ebe123
          items:
            $ref: '#/components/schemas/TimeEntryId'
    StopTimeEntryRequest:
      required:
      - end
      type: object
      properties:
        end:
          type: string
          description: Represents an end date in the yyyy-MM-ddThh:mm:ssZ format.
          format: date-time
          example: '2021-01-01T00:00:00Z'
    TimeEntryId:
      type: object
      properties:
        dateOfCreationFromObjectId:
          type: string
          format: date-time
      description: Represents a list of invoiced time entry ids
      example:
      - 54m377ddd3fcab07cfbb432w
      - 25b687e29ae1f428e7ebe123
    UpdateTimeEntryRequest:
      required:
      - start
      type: object
      properties:
        billable:
          type: boolean
          description: Indicates whether a time entry is billable or not.
          default: false
        customFields:
          maxItems: 50
          minItems: 0
          type: array
          description: Represents a list of value objects for user’s custom fields.
          items:
            $ref: '#/components/schemas/UpdateCustomFieldRequest'
        description:
          maxLength: 3000
          minLength: 0
          type: string
          description: Represents time entry description.
          example: This is a sample time entry description.
        end:
          type: string
          description: Represents an end date in yyyy-MM-ddThh:mm:ssZ format.
          format: date-time
          example: '2021-01-01T00:00:00Z'
        projectId:
          type: string
          description: Represents a project identifier across the system.
          example: 25b687e29ae1f428e7ebe123
        start:
          type: str

# --- truncated at 32 KB (43 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/clockify/refs/heads/main/openapi/clockify-time-entry-api-openapi.yml