{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nuix/main/json-schema/nuix-list-targets-response-schema.json",
  "title": "listTargetsResponse",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nuix-target-api-openapi.yml#/components/schemas/listTargetsResponse",
  "type": "object",
  "properties": {
    "targets": {
      "type": "array",
      "description": "List of Targets.",
      "items": {
        "$ref": "#/$defs/Target"
      }
    }
  },
  "$defs": {
    "Target": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "id of the Target"
        },
        "name": {
          "type": "string",
          "description": "name of the target"
        },
        "description": {
          "type": "string",
          "description": "description of the target"
        },
        "custodianId": {
          "type": "integer",
          "description": "id of the Custodian this target belongs to"
        },
        "computerName": {
          "type": "string",
          "description": "name of the Computer this target belongs to"
        },
        "computerGUID": {
          "type": "string",
          "description": "GUID of the Computer this target belongs to"
        },
        "Inputs": {
          "type": "array",
          "description": "array of inputs in the target",
          "items": {
            "$ref": "#/$defs/TargetInputs"
          }
        }
      }
    },
    "TargetInputs": {
      "type": "object",
      "properties": {
        "types": {
          "type": "string",
          "description": "Path, Local Path, or AutoDetect",
          "enum": [
            "Path",
            "Local Path",
            "AutoDetect"
          ]
        },
        "location": {
          "type": "string",
          "description": "full path or AutoDetect setting for the source"
        },
        "exclusion": {
          "type": "string",
          "description": "excluded subfolders in the location (only for Path type)"
        }
      }
    }
  }
}