{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customdomain-ai/json-schema/customdomain-ai-managed-dnsrecords-request-schema.json",
  "title": "ManagedDNSRecordsRequest",
  "description": "Exactly one of zone_file or records.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customdomain-ai-managed-dns-api-openapi.yml#/components/schemas/ManagedDNSRecordsRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "zone_file": {
      "type": "string",
      "maxLength": 262144,
      "description": "A BIND zone file (RFC 1035 master format)."
    },
    "records": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "$ref": "#/$defs/ManagedDNSRecordInput"
      }
    }
  },
  "$defs": {
    "ManagedDNSRecordInput": {
      "type": "object",
      "required": [
        "type",
        "name",
        "value"
      ],
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "A",
            "AAAA",
            "CNAME",
            "MX",
            "TXT",
            "SRV",
            "CAA",
            "NS"
          ]
        },
        "name": {
          "type": "string",
          "description": "Relative to the zone (\"@\", \"www\", \"_dmarc\") or fully qualified inside it."
        },
        "value": {
          "type": "string",
          "description": "Same forms as ManagedDNSRecord.value."
        },
        "ttl": {
          "type": "integer",
          "description": "Seconds; default 3600, clamped to 60 to 604800."
        },
        "priority": {
          "type": [
            "integer",
            "null"
          ],
          "description": "MX preference (default 10) or SRV priority (default 0)."
        }
      }
    }
  }
}