{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lathe-live/json-schema/lathe-live-instance-create-schema.json",
  "title": "InstanceCreate",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lathe-live-openapi.json#/components/schemas/InstanceCreate",
  "properties": {
    "tier": {
      "type": "string",
      "title": "Tier",
      "description": "free | mini | starter | plus | pro (see GET /plans; Free only where offered)"
    },
    "engines": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "additionalProperties": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Engines",
      "description": "Engines on the box: a list of names (budgets split by default) or {name: {memory_mb}}; omit for Postgres alone. GET /plans lists what is available."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "A label shown instead of the id; free text, not unique.",
      "default": ""
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags",
      "description": "Lowercase tokens for grouping: letters, digits, . _ : -"
    },
    "location": {
      "type": "string",
      "title": "Location",
      "description": "Location code from GET /locations; empty = the default.",
      "default": ""
    },
    "coupon": {
      "type": "string",
      "title": "Coupon",
      "description": "A discount code for the first month.",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "tier"
  ]
}