{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/multimail-dev/json-schema/multimail-dev-update-mailbox-request-schema.json",
  "title": "UpdateMailboxRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/multimail-dev-openapi.yml#/components/schemas/UpdateMailboxRequest",
  "type": "object",
  "properties": {
    "display_name": {
      "type": "string"
    },
    "oversight_mode": {
      "type": "string",
      "enum": [
        "read_only",
        "gated_all",
        "gated_send",
        "monitored",
        "autonomous"
      ],
      "description": "Downgrade only. To upgrade, use POST /v1/mailboxes/{id}/request-upgrade."
    },
    "auto_cc": {
      "type": [
        "string",
        "null"
      ],
      "format": "email",
      "description": "Operator-controlled. Changing this requires operator approval via the two-step approval_code flow."
    },
    "auto_bcc": {
      "type": [
        "string",
        "null"
      ],
      "format": "email",
      "description": "Operator-controlled. Changing this — including clearing to null — requires operator approval via the two-step approval_code flow."
    },
    "forward_inbound": {
      "type": "boolean"
    },
    "signature_block": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 200
    },
    "ai_disclosure": {
      "type": "boolean",
      "description": "Locked (EU AI Act Article 50): AI marking is enforced at the send gateway. true is accepted as a no-op; false is rejected with 400."
    },
    "approval_code": {
      "type": "string",
      "description": "Operator approval code for gated changes (auto_cc/auto_bcc). Omit on the first call to receive a code at the oversight email; resubmit with it to complete. webhook_url is NOT settable here — webhooks are operator-only via create_webhook."
    }
  }
}