{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackit/main/json-schema/stackit-upload-iplist-payload-schema.json",
  "title": "UploadIPListPayload",
  "description": "Request payload for creating or replacing an IP list.\n\n**Limits & Restrictions:**\n- **Project Quota:** Maximum of 3 IP lists allowed per project.\n- **Payload Size:** The entire HTTP request body JSON payload is restricted to a maximum size of 2 MB. This limit applies to the full JSON structure, including all fields (`name`, `projectId`, `region`, `fileContent`) and all `labels` keys and values.\n- **Rate Limit:** 1 request per minute.",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-lb-ip-lists-openapi.yml#/components/schemas/UploadIPListPayload",
  "properties": {
    "fileContent": {
      "description": "Raw upload payload as a plain UTF-8 string. Newline-separated `.txt` list of IPv4 CIDR entries, or CSV with `cidr,labels` columns (any other columns are ignored).",
      "type": "string"
    },
    "labels": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Labels represent user-defined metadata as key-value pairs.\nLabel count should not exceed 64 per IP list.\n\n**Key Formatting Rules:**\nLength: 1-63 characters.\nCharacters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between.\nKeys starting with 'stackit-' are system-reserved; users MUST NOT manage them.\n\n**Value Formatting Rules:**\nLength: 0-63 characters (empty string explicitly allowed).\nCharacters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between.\n",
      "type": "object"
    },
    "name": {
      "description": "IP list name",
      "maxLength": 51,
      "pattern": "^[0-9a-z](?:(?:[0-9a-z]|-){0,49}[0-9a-z])?$",
      "type": "string"
    },
    "projectId": {
      "description": "Project identifier",
      "format": "uuid",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
      "readOnly": true,
      "type": "string"
    },
    "region": {
      "description": "Region",
      "format": "string",
      "pattern": "^[a-z]{2,4}[0-9]{2}$",
      "readOnly": true,
      "type": "string"
    }
  },
  "required": [
    "name",
    "fileContent"
  ],
  "type": "object"
}