{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/defectdojo/json-schema/defectdojo-post-api-v2-import-scan-request-schema.json",
  "title": "PostApiV2ImportScanRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/defectdojo-openapi-generated.yml#/components/schemas/PostApiV2ImportScanRequest",
  "type": "object",
  "properties": {
    "minimum_severity": {
      "type": "string",
      "description": "e.g., 'Info'."
    },
    "active": {
      "type": "boolean",
      "description": "Whether imported findings are active."
    },
    "verified": {
      "type": "boolean",
      "description": "Whether imported findings are verified."
    },
    "scan_type": {
      "type": "string",
      "description": "e.g., 'ZAP Scan'."
    },
    "test_title": {
      "type": "string",
      "description": "Title for the created test."
    },
    "product_type_name": {
      "type": "string",
      "description": "Name of the product type (Organization)."
    },
    "product_name": {
      "type": "string",
      "description": "Name of the product (Asset)."
    },
    "engagement_name": {
      "type": "string",
      "description": "Name of the engagement."
    },
    "auto_create_context": {
      "type": "boolean",
      "description": "Create missing Asset, engagement, and environment if needed."
    },
    "engagement": {
      "type": "integer",
      "description": "ID of an existing engagement to import into."
    },
    "file": {
      "type": "string",
      "description": "The scan report file (multipart/form‑data)."
    },
    "background_import": {
      "type": "boolean",
      "description": "If true, import runs asynchronously and returns a background import response."
    }
  },
  "required": [
    "file"
  ]
}