{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frontapp/json-schema/frontapp-update-time-off-schema.json",
  "title": "UpdateTimeOff",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frontapp-time-off-api-openapi.yml#/components/schemas/UpdateTimeOff",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the time off"
    },
    "start_at": {
      "type": "number",
      "description": "Timestamp when the time off starts (in seconds)"
    },
    "end_at": {
      "type": [
        "number",
        "null"
      ],
      "description": "Timestamp when the time off ends (in seconds), or null to clear it"
    },
    "auto_responder": {
      "type": "object",
      "properties": {
        "body": {
          "type": "string",
          "description": "The auto-reply message body"
        },
        "is_enabled": {
          "type": "boolean",
          "description": "Whether the auto-responder is enabled"
        },
        "is_contacts_only": {
          "type": "boolean",
          "description": "Whether the auto-responder only replies to known contacts"
        },
        "channel_ids": {
          "type": "array",
          "description": "List of channel IDs the auto-responder applies to",
          "items": {
            "$ref": "#/$defs/ResourceID"
          }
        }
      }
    }
  },
  "$defs": {
    "ResourceID": {
      "type": "string"
    }
  }
}