{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/r2_add_custom_domain_request",
  "title": "r2_add_custom_domain_request",
  "example": {
    "domain": "prefix.example-domain.com",
    "zoneId": "36ca64a6d92827b8a6b90be344bb1bfd"
  },
  "properties": {
    "domain": {
      "description": "Name of the custom domain to be added",
      "type": "string"
    },
    "enabled": {
      "description": "Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.",
      "type": "boolean"
    },
    "minTLS": {
      "description": "Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0.",
      "enum": [
        "1.0",
        "1.1",
        "1.2",
        "1.3"
      ],
      "type": "string"
    },
    "zoneId": {
      "description": "Zone ID of the custom domain",
      "type": "string"
    }
  },
  "required": [
    "domain",
    "zoneId"
  ],
  "type": "object"
}