{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hostinger/main/json-schema/hostinger-agency-hosting-v1-setups-create-setup-request-schema.json",
  "title": "AgencyHosting.V1.Setups.CreateSetupRequest",
  "description": "Create a new Agency Plan website setup on the given order",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostinger-agency-hosting-website-setups-api-openapi.yml#/components/schemas/AgencyHosting.V1.Setups.CreateSetupRequest",
  "required": [
    "datacenter_code",
    "flavor",
    "settings"
  ],
  "properties": {
    "datacenter_code": {
      "description": "Datacenter code where the website should be provisioned. Available codes depend on live capacity and are not a fixed set.",
      "type": "string"
    },
    "flavor": {
      "description": "Setup flavor: a specific WordPress version in the format `wp-<major>.<minor>` or `wp-<major>.<minor>.<patch>` (e.g. `wp-6.8.2`), or `php-fpm` for a plain PHP stack. Generic versions like `wp-latest` are not allowed.",
      "type": "string",
      "pattern": "^(wp-[0-9]+(\\.[0-9]+){1,2}|php-fpm)$"
    },
    "settings": {
      "description": "Website settings",
      "required": [
        "php"
      ],
      "properties": {
        "php": {
          "required": [
            "version"
          ],
          "properties": {
            "version": {
              "description": "PHP version",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "domain": {
      "description": "Primary domain to attach to the website. Omit or set to null to get a free auto-generated *.hostingersite.com subdomain instead.",
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "description": "Website type",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "node-static"
      ]
    },
    "wordpress": {
      "description": "WordPress installation options",
      "required": [
        "language",
        "title",
        "admin"
      ],
      "properties": {
        "language": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "admin": {
          "required": [
            "user",
            "password",
            "email"
          ],
          "properties": {
            "user": {
              "type": "string"
            },
            "password": {
              "type": "string"
            },
            "email": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}