{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hoursquare/json-schema/hoursquare-time-entry-write-response-schema.json",
  "title": "TimeEntryWriteResponse",
  "description": "The 201 (200 for a dry run or a header-less dedupe hit) body of POST /time-clock/events and\nPOST /time-entries (plan §6). type is the EFFECTIVE type (toggle resolves to\nclock_in or clock_out; a completed shift is shift). workDate / time\nare the entry's stored wall-clock values in timeZone (an IANA id, or offset when the\nsent offset was kept), and occurredAt is the server-resolved instant. endsNextDay is true\nfor an overnight shift (the entry stays on the day it started). timeEntryId is null on a\ndry-run clock-in (nothing was created).",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hoursquare-openapi.json#/components/schemas/TimeEntryWriteResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "timeEntryId": {
      "type": [
        "string",
        "null"
      ],
      "format": "guid"
    },
    "employee": {
      "$ref": "#/$defs/EmployeeRef"
    },
    "type": {
      "type": "string"
    },
    "workDate": {
      "type": "string",
      "format": "date"
    },
    "time": {
      "type": "string",
      "format": "time"
    },
    "timeZone": {
      "type": "string"
    },
    "occurredAt": {
      "type": "string",
      "format": "date-time"
    },
    "endsNextDay": {
      "type": "boolean"
    },
    "status": {
      "type": "string"
    },
    "dryRun": {
      "type": "boolean"
    },
    "startTime": {
      "type": [
        "string",
        "null"
      ],
      "format": "time"
    },
    "endTime": {
      "type": [
        "string",
        "null"
      ],
      "format": "time"
    },
    "totalHours": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    }
  },
  "$defs": {
    "EmployeeRef": {
      "type": "object",
      "description": "Every public response that names an employee carries this pair.",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "format": "guid"
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}