{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateCustomDomainResponseContent",
  "title": "UpdateCustomDomainResponseContent",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "custom_domain_id",
    "domain",
    "primary",
    "status",
    "type",
    "verification"
  ],
  "properties": {
    "custom_domain_id": {
      "type": "string",
      "description": "ID of the custom domain.",
      "default": "cd_0000000000000001"
    },
    "domain": {
      "type": "string",
      "description": "Domain name.",
      "default": "login.mycompany.com"
    },
    "primary": {
      "type": "boolean",
      "description": "Whether this is a primary domain (true) or not (false).",
      "default": false
    },
    "is_default": {
      "type": "boolean",
      "description": "Whether this is the default custom domain (true) or not (false).",
      "default": false
    },
    "status": {
      "$ref": "#/components/schemas/CustomDomainStatusFilterEnum"
    },
    "type": {
      "$ref": "#/components/schemas/CustomDomainTypeEnum"
    },
    "verification": {
      "$ref": "#/components/schemas/DomainVerification"
    },
    "custom_client_ip_header": {
      "type": [
        "string",
        "null"
      ],
      "description": "The HTTP header to fetch the client's IP address"
    },
    "tls_policy": {
      "type": "string",
      "description": "The TLS version policy",
      "default": "recommended"
    },
    "domain_metadata": {
      "$ref": "#/components/schemas/DomainMetadata"
    },
    "certificate": {
      "$ref": "#/components/schemas/DomainCertificate"
    },
    "relying_party_identifier": {
      "type": "string",
      "description": "Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.",
      "format": "hostname"
    }
  }
}