{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simpledock-ai/json-schema/simpledock-ai-location-schema.json",
  "title": "Location",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/simpledock-ai-openapi.yml#/components/schemas/Location",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    },
    "address": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "zip": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ],
      "description": "Two-letter ISO country code, e.g. US or AU."
    },
    "appointmentApprovalRequired": {
      "type": "boolean"
    },
    "reviewBookingsWhileClosed": {
      "type": "boolean",
      "description": "When true, a public booking made while the facility is closed stays pending until staff approve it."
    },
    "apiManaged": {
      "type": "boolean",
      "description": "Marks a location whose hours, closures, and settings an API client keeps in step with its own system. SimpleDock stores and returns it only."
    },
    "slotsPerHour": {
      "type": "integer",
      "enum": [
        1,
        2,
        4
      ],
      "description": "How often start times are offered: 1 = on the hour, 2 = every 30 minutes, 4 = every 15 minutes."
    },
    "assignDoors": {
      "type": "boolean",
      "description": "true = each booking gets a specific door. false = only cap how many trucks overlap (doorCapacity)."
    },
    "doorCapacity": {
      "type": "integer",
      "description": "Trucks allowed at once when assignDoors is false."
    },
    "dwellTrackingEnabled": {
      "type": "boolean"
    },
    "notifyEmail": {
      "type": [
        "string",
        "null"
      ],
      "description": "One extra address that gets booking alerts besides the team."
    },
    "emailNotificationsEnabled": {
      "type": "boolean",
      "description": "Carrier confirmation and change emails on or off."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}