{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentisend-com/json-schema/agentisend-com-patch-domains-by-id-body-schema.json",
  "title": "PatchDomainsBy_idBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentisend-com-domains-api-openapi.yml#/components/schemas/PatchDomainsBy_idBody",
  "properties": {
    "capabilities": {
      "additionalProperties": false,
      "description": "What the domain does: sending (default enabled) and receiving (default disabled), each enabled or disabled. At least one must be enabled.",
      "properties": {
        "receiving": {
          "description": "enabled or disabled. Default disabled. Enabled: this domain accepts inbound mail.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string"
        },
        "sending": {
          "description": "enabled or disabled. Default enabled. Disabled: mail from this domain is refused and the domain is not signed for.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "click_tracking": {
      "description": "Rewrite links so clicks can be counted. Off unless you set this.",
      "type": "boolean"
    },
    "custom_return_path": {
      "description": "The return-path label cannot be changed after the domain is created."
    },
    "inbound_hold_mode": {
      "description": "monitor delivers every received message and labels it. hold keeps a message labeled review until a person releases it; the arrival webhook waits.",
      "enum": [
        "monitor",
        "hold"
      ],
      "type": "string"
    },
    "inbound_policy": {
      "description": "open stores every sender a block rule does not match. allowlist stores a sender only when the envelope or the From header matches an allow rule. A block rule refuses either way.",
      "enum": [
        "open",
        "allowlist"
      ],
      "type": "string"
    },
    "name": {
      "description": "The domain name cannot be changed. Create another domain."
    },
    "open_tracking": {
      "description": "Count opens. Off unless you set this.",
      "type": "boolean"
    },
    "region": {
      "description": "The region cannot be changed after the domain is created."
    },
    "return_path": {
      "description": "The return-path label cannot be changed after the domain is created."
    },
    "tls": {
      "description": "Same as tls_mode. tls_mode wins if both are sent.",
      "enum": [
        "opportunistic",
        "enforced"
      ],
      "type": "string"
    },
    "tls_mode": {
      "description": "opportunistic tries TLS and falls back. enforced refuses a receiver that cannot do TLS.",
      "enum": [
        "opportunistic",
        "enforced"
      ],
      "type": "string"
    },
    "tracking_subdomain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Change the tracking host label. Null is refused: the host can be renamed, not removed."
    }
  },
  "type": "object"
}