{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/guidecx/json-schema/guidecx-create-time-record-request-schema.json",
  "title": "CreateTimeRecordRequest",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/guidecx-openapi-v2.json#/components/schemas/CreateTimeRecordRequest",
  "properties": {
    "dateOfWork": {
      "type": "string",
      "format": "date-time",
      "description": "Date the work was performed"
    },
    "projectId": {
      "type": "string",
      "description": "ID of the project the Time Record belongs to"
    },
    "taskId": {
      "type": "string",
      "description": "ID of the task the Time Record to belongs to"
    },
    "userId": {
      "type": "string",
      "description": "ID of the user the Time Record belongs to"
    },
    "hours": {
      "type": "number",
      "format": "double",
      "description": "Number of hours"
    },
    "billable": {
      "type": "boolean",
      "description": "Whether the hours are billable or not"
    },
    "description": {
      "type": "string",
      "description": "Description of the Time Record"
    },
    "timeCategoryId": {
      "type": "string",
      "description": "Optional ID of the time category the Time Record belongs to"
    }
  },
  "required": [
    "dateOfWork",
    "projectId",
    "userId",
    "hours"
  ],
  "type": "object",
  "additionalProperties": false
}