{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nuix/main/json-schema/nuix-create-target-request-schema.json",
  "title": "createTargetRequest",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nuix-target-api-openapi.yml#/components/schemas/createTargetRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "always 0"
    },
    "name": {
      "type": "string",
      "description": "case name to set"
    },
    "targetName": {
      "type": "string",
      "description": "name of the new Target"
    },
    "description": {
      "type": "string",
      "description": "optional, description of the new Target"
    },
    "computerId": {
      "type": "string",
      "description": "GUID of the computer this Target belongs to"
    },
    "custodianId": {
      "type": "string",
      "description": "optional, id of Custodian this Target is associated with (Unassigned Custodian if omitted)"
    },
    "inputs": {
      "type": "array",
      "description": "array of input paths",
      "items": {
        "$ref": "#/$defs/TargetInputs"
      }
    }
  },
  "$defs": {
    "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)"
        }
      }
    }
  }
}