{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/intruder/main/json-schema/intruder-patched-target-authentications-request-schema.json",
  "title": "PatchedTargetAuthenticationsRequest",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intruder-api-openapi.yml#/components/schemas/PatchedTargetAuthenticationsRequest",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1
    },
    "type": {
      "$ref": "#/$defs/TypeEnum"
    },
    "name": {
      "type": "string"
    },
    "logout_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "logged_in_indicator": {
      "type": [
        "string",
        "null"
      ]
    },
    "csrf_token_field": {
      "type": [
        "string",
        "null"
      ]
    },
    "login_form_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "login_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "password_field": {
      "type": [
        "string",
        "null"
      ]
    },
    "realm": {
      "type": [
        "string",
        "null"
      ]
    },
    "username_field": {
      "type": [
        "string",
        "null"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "is_ajax_spider_enabled": {
      "type": "boolean"
    },
    "additional_scan_domains": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      }
    },
    "additional_cross_domains": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "maxItems": 3
    },
    "recorded_login_file": {
      "type": "string",
      "format": "binary"
    },
    "additional_parameters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TargetAuthenticationGenericJSONFieldRequest"
      },
      "writeOnly": true
    },
    "cookies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TargetAuthenticationGenericJSONFieldRequest"
      },
      "writeOnly": true
    },
    "headers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TargetAuthenticationGenericJSONFieldRequest"
      },
      "writeOnly": true
    },
    "password": {
      "type": "string",
      "writeOnly": true,
      "minLength": 1
    },
    "username": {
      "type": "string",
      "writeOnly": true,
      "minLength": 1
    }
  },
  "$defs": {
    "TargetAuthenticationGenericJSONFieldRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "value": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "TypeEnum": {
      "enum": [
        "http_header",
        "session_cookie",
        "http",
        "form",
        "recorded",
        "unauthenticated",
        "oauth_client_credentials"
      ],
      "type": "string",
      "description": "* `http_header` - HTTP_HEADER\n* `session_cookie` - SESSION_COOKIE\n* `http` - HTTP\n* `form` - FORM\n* `recorded` - RECORDED\n* `unauthenticated` - UNAUTHENTICATED\n* `oauth_client_credentials` - OAUTH_CLIENT_CREDENTIALS"
    }
  }
}