{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anthid-com/json-schema/anthid-com-patch-control-request-schema.json",
  "title": "PatchControlRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anthid-com-account-manual-controls-api-openapi.yml#/components/schemas/PatchControlRequest",
  "type": "object",
  "properties": {
    "clear": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ManualControlField"
      },
      "description": "Fields to remove. Clearing `manually_disabled` restores its default of\nfalse, since the column cannot be null."
    },
    "manual_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "manually_disabled": {
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "$defs": {
    "ManualControlField": {
      "type": "string",
      "description": "Fields of a manual control a PATCH may remove.\n\nAn enum rather than free text so a misspelled name is rejected instead of\nsilently doing nothing. A caller that believes it re-enabled an account and\ndid not is the failure this exists to prevent.",
      "enum": [
        "manually_disabled",
        "manual_reason"
      ]
    }
  }
}