> For the complete documentation index, see [llms.txt](https://docs.dropzone.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dropzone.ai/api/custom-threat-collections.md).

# Custom Threat Collections

## GET /app/api/v1/threat-intel/collections

> List Custom Threat Collections.

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"ThreatIntelCollectionList":{"type":"object","properties":{"collections":{"type":"array","items":{"$ref":"#/components/schemas/ThreatIntelCollection"},"description":"Array of collections"},"count":{"type":"integer","description":"Total number of collections returned"}},"required":["collections","count"]},"ThreatIntelCollection":{"type":"object","description":"Serializer for ThreatIntelCollection model","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/ThreatIntelCollectionStatusEnum"}],"readOnly":true,"description":"Collection status: parsing, active, deleted, or error\n\n* `parsing` - Parsing\n* `active` - Active\n* `deleted` - Deleted\n* `error` - Error"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"integer","nullable":true,"description":"User ID who created the collection. None indicates System user.","readOnly":true},"updated_by":{"type":"integer","nullable":true,"description":"User ID who last updated the collection. None indicates System user.","readOnly":true},"file_info":{"type":"object","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["single_file","archive"],"description":"File type: 'single_file' for individual JSON files, 'archive' for ZIP/TAR archives"},"hash":{"type":"string","description":"SHA-256 hash of the uploaded file or archive"},"imported_at":{"type":"string","description":"ISO 8601 timestamp when file was imported"},"indicators_created":{"type":"integer","description":"Number of indicators created from this file or archive"},"indicators_updated":{"type":"integer","description":"Number of indicators updated from this file or archive"},"total_objects":{"type":"integer","description":"Total STIX objects processed from this file or archive"},"files_processed":{"type":"integer","description":"Number of files processed from the archive (only present for archives)"},"files_succeeded":{"type":"integer","description":"Number of files that succeeded (only present for archives)"},"files_failed":{"type":"integer","description":"Number of files that failed (only present for archives)"},"files_parsed":{"type":"array","items":{"type":"string"},"description":"List of filenames that were successfully parsed (only present for archives)"},"files_errored":{"type":"array","items":{"type":"string"},"description":"List of filenames that had errors (only present for archives)"},"files_skipped":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"reason":{"type":"string"}},"required":["filename","reason"]},"description":"List of skipped files with reasons (only present for archives)"}},"required":["type","hash","imported_at","indicators_created","indicators_updated","total_objects"]},"description":"Dictionary keyed by filename containing file metadata. Each entry contains common fields (type, hash, imported_at, indicators_created, indicators_updated, total_objects). Archive entries (type='archive') additionally include files_processed, files_succeeded, files_failed, files_parsed, files_errored, and files_skipped fields for detailed filename tracking.","readOnly":true},"indicators_count":{"type":"integer","description":"Get the count of indicators in this collection","readOnly":true},"dz_owned":{"type":"boolean","readOnly":true,"default":false,"description":"Flag to mark Dropzone-owned collections (e.g., auto-loaded threat intel)"},"expires_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true,"description":"When set, internal threat intel search excludes this collection at and after this date."}},"required":["created_at","created_by","dz_owned","expires_at","file_info","id","indicators_count","name","status","updated_at","updated_by"]},"ThreatIntelCollectionStatusEnum":{"enum":["parsing","active","deleted","error"],"type":"string","description":"* `parsing` - Parsing\n* `active` - Active\n* `deleted` - Deleted\n* `error` - Error"}}},"paths":{"/app/api/v1/threat-intel/collections":{"get":{"operationId":"threat_intel_list_external","description":"List Custom Threat Collections.","tags":["Custom Threat Collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreatIntelCollectionList"}}},"description":"List of Custom Threat Collections"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## POST /app/api/v1/threat-intel/collections

> Create a new Custom Threat Collection.\
> \
> \*\*Collection Name:\*\*\
> If omitted and a file is provided, the filename (without extension) will be used. If no file is provided, collection\_name is required.\*\*Supported Formats:\*\*\
> \- Single STIX JSON file (.json)\
> \- Compressed tar/zip archives (.tar.gz, .tgz, .zip) containing multiple STIX files\
> \
> \*\*Size Limits:\*\*\
> \- File size: 100.0MB max<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"ImportResult":{"type":"object","description":"Serializer for ImportResult dataclass from threat intelligence imports","properties":{"file_type":{"nullable":true,"description":"Type of file processed\n\n* `single_file` - single_file\n* `archive` - archive","oneOf":[{"$ref":"#/components/schemas/FileTypeEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"collection_id":{"type":"string","nullable":true,"description":"UUID of the collection"},"collection_name":{"type":"string","nullable":true,"description":"Name of the collection"},"file_name":{"type":"string","nullable":true,"description":"Name of the uploaded file"},"file_hash":{"type":"string","nullable":true,"description":"SHA-256 hash of the uploaded file"},"files_processed":{"type":"integer","description":"Number of files processed (0 for single files)"},"files_succeeded":{"type":"integer","description":"Number of files that succeeded (0 for single files)"},"files_failed":{"type":"integer","description":"Number of files that failed (0 for single files)"},"files_parsed":{"type":"array","items":{"type":"string"},"description":"List of filenames that were successfully parsed (empty for single files)"},"files_errored":{"type":"array","items":{"type":"string"},"description":"List of filenames that had errors (empty for single files)"},"files_skipped":{"type":"array","items":{"type":"object","additionalProperties":{}},"description":"List of skipped files with reasons. Each entry has 'filename' and 'reason' keys. (empty for single files)"},"total_objects":{"type":"integer","description":"Total STIX objects processed"},"indicators":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Indicator counts"},"domain_objects":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Domain object counts"},"relationships":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Relationship counts"},"sightings":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Sighting counts"},"error_count":{"type":"integer","description":"Total number of errors","readOnly":true}},"required":["domain_objects","error_count","files_errored","files_failed","files_parsed","files_processed","files_skipped","files_succeeded","indicators","relationships","sightings","total_objects"]},"FileTypeEnum":{"enum":["single_file","archive"],"type":"string","description":"* `single_file` - single_file\n* `archive` - archive"},"NullEnum":{"enum":[null]},"ObjectCounts":{"type":"object","description":"Serializer for ObjectCounts dataclass","properties":{"found":{"type":"integer","description":"Number of objects found"},"created":{"type":"integer","description":"Number of objects created"},"updated":{"type":"integer","description":"Number of objects updated"},"skipped":{"type":"integer","description":"Number of objects skipped"}},"required":["created","found","skipped","updated"]}}},"paths":{"/app/api/v1/threat-intel/collections":{"post":{"operationId":"threat_intel_create_external","description":"Create a new Custom Threat Collection.\n\n**Collection Name:**\nIf omitted and a file is provided, the filename (without extension) will be used. If no file is provided, collection_name is required.**Supported Formats:**\n- Single STIX JSON file (.json)\n- Compressed tar/zip archives (.tar.gz, .tgz, .zip) containing multiple STIX files\n\n**Size Limits:**\n- File size: 100.0MB max\n","tags":["Custom Threat Collections"],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"STIX JSON file or compressed tar archive"},"collection_name":{"type":"string","description":"Collection name (optional, defaults to filename)"},"expires_at":{"type":"string","format":"date-time","nullable":true,"description":"Optional. When set, internal threat intel search excludes this collection after this date. Omit or null for no expiry."}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResult"}}},"description":"Successfully processed"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - missing file, invalid collection name, or invalid MIME type"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Conflict - duplicate file (already uploaded in last 5 minutes) or collection limit exceeded"},"413":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"File too large - exceeds 100.0MB"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Internal server error - file processing failed or file save failed during async upload"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"},"507":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Insufficient storage space on server"}}}}}}
```

## GET /app/api/v1/threat-intel/collections/{collection\_id}

> Get details for a specific Custom Threat Collection.

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"ThreatIntelCollection":{"type":"object","description":"Serializer for ThreatIntelCollection model","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/ThreatIntelCollectionStatusEnum"}],"readOnly":true,"description":"Collection status: parsing, active, deleted, or error\n\n* `parsing` - Parsing\n* `active` - Active\n* `deleted` - Deleted\n* `error` - Error"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"integer","nullable":true,"description":"User ID who created the collection. None indicates System user.","readOnly":true},"updated_by":{"type":"integer","nullable":true,"description":"User ID who last updated the collection. None indicates System user.","readOnly":true},"file_info":{"type":"object","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["single_file","archive"],"description":"File type: 'single_file' for individual JSON files, 'archive' for ZIP/TAR archives"},"hash":{"type":"string","description":"SHA-256 hash of the uploaded file or archive"},"imported_at":{"type":"string","description":"ISO 8601 timestamp when file was imported"},"indicators_created":{"type":"integer","description":"Number of indicators created from this file or archive"},"indicators_updated":{"type":"integer","description":"Number of indicators updated from this file or archive"},"total_objects":{"type":"integer","description":"Total STIX objects processed from this file or archive"},"files_processed":{"type":"integer","description":"Number of files processed from the archive (only present for archives)"},"files_succeeded":{"type":"integer","description":"Number of files that succeeded (only present for archives)"},"files_failed":{"type":"integer","description":"Number of files that failed (only present for archives)"},"files_parsed":{"type":"array","items":{"type":"string"},"description":"List of filenames that were successfully parsed (only present for archives)"},"files_errored":{"type":"array","items":{"type":"string"},"description":"List of filenames that had errors (only present for archives)"},"files_skipped":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"reason":{"type":"string"}},"required":["filename","reason"]},"description":"List of skipped files with reasons (only present for archives)"}},"required":["type","hash","imported_at","indicators_created","indicators_updated","total_objects"]},"description":"Dictionary keyed by filename containing file metadata. Each entry contains common fields (type, hash, imported_at, indicators_created, indicators_updated, total_objects). Archive entries (type='archive') additionally include files_processed, files_succeeded, files_failed, files_parsed, files_errored, and files_skipped fields for detailed filename tracking.","readOnly":true},"indicators_count":{"type":"integer","description":"Get the count of indicators in this collection","readOnly":true},"dz_owned":{"type":"boolean","readOnly":true,"default":false,"description":"Flag to mark Dropzone-owned collections (e.g., auto-loaded threat intel)"},"expires_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true,"description":"When set, internal threat intel search excludes this collection at and after this date."}},"required":["created_at","created_by","dz_owned","expires_at","file_info","id","indicators_count","name","status","updated_at","updated_by"]},"ThreatIntelCollectionStatusEnum":{"enum":["parsing","active","deleted","error"],"type":"string","description":"* `parsing` - Parsing\n* `active` - Active\n* `deleted` - Deleted\n* `error` - Error"}}},"paths":{"/app/api/v1/threat-intel/collections/{collection_id}":{"get":{"operationId":"threat_intel_retrieve_external","description":"Get details for a specific Custom Threat Collection.","parameters":[{"in":"path","name":"collection_id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["Custom Threat Collections"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreatIntelCollection"}}},"description":"Collection details. The file_info field is a dictionary keyed by filename. Each value is either a SingleFileInfo (for single files) or ArchiveFileInfo (for archives), determined by the 'type' field. All file types include indicators_skipped count. ArchiveFileInfo includes detailed filename tracking: files_parsed (successfully parsed), files_errored (had errors), files_skipped (skipped entirely), and files_warning (partial success - imported some indicators but also had errors or skipped indicators)."},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Resource not found"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## DELETE /app/api/v1/threat-intel/collections/{collection\_id}

> Delete a Custom Threat Collection

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/app/api/v1/threat-intel/collections/{collection_id}":{"delete":{"operationId":"threat_intel_destroy_external","description":"Delete a Custom Threat Collection","parameters":[{"in":"path","name":"collection_id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["Custom Threat Collections"],"responses":{"204":{"description":"Collection deleted successfully"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Collection not found"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## PATCH /app/api/v1/threat-intel/collections/{collection\_id}

> Update a Custom Threat Collection

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"PatchedThreatIntelCollectionCoreSettings":{"type":"object","description":"Validation for updating core settings of a threat intelligence collection.","properties":{"expires_at":{"type":"string","format":"date-time","nullable":true,"description":"When set, internal threat intel search excludes this collection at and after this date. Send null to clear."}}},"ThreatIntelCollection":{"type":"object","description":"Serializer for ThreatIntelCollection model","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/ThreatIntelCollectionStatusEnum"}],"readOnly":true,"description":"Collection status: parsing, active, deleted, or error\n\n* `parsing` - Parsing\n* `active` - Active\n* `deleted` - Deleted\n* `error` - Error"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"integer","nullable":true,"description":"User ID who created the collection. None indicates System user.","readOnly":true},"updated_by":{"type":"integer","nullable":true,"description":"User ID who last updated the collection. None indicates System user.","readOnly":true},"file_info":{"type":"object","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["single_file","archive"],"description":"File type: 'single_file' for individual JSON files, 'archive' for ZIP/TAR archives"},"hash":{"type":"string","description":"SHA-256 hash of the uploaded file or archive"},"imported_at":{"type":"string","description":"ISO 8601 timestamp when file was imported"},"indicators_created":{"type":"integer","description":"Number of indicators created from this file or archive"},"indicators_updated":{"type":"integer","description":"Number of indicators updated from this file or archive"},"total_objects":{"type":"integer","description":"Total STIX objects processed from this file or archive"},"files_processed":{"type":"integer","description":"Number of files processed from the archive (only present for archives)"},"files_succeeded":{"type":"integer","description":"Number of files that succeeded (only present for archives)"},"files_failed":{"type":"integer","description":"Number of files that failed (only present for archives)"},"files_parsed":{"type":"array","items":{"type":"string"},"description":"List of filenames that were successfully parsed (only present for archives)"},"files_errored":{"type":"array","items":{"type":"string"},"description":"List of filenames that had errors (only present for archives)"},"files_skipped":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"reason":{"type":"string"}},"required":["filename","reason"]},"description":"List of skipped files with reasons (only present for archives)"}},"required":["type","hash","imported_at","indicators_created","indicators_updated","total_objects"]},"description":"Dictionary keyed by filename containing file metadata. Each entry contains common fields (type, hash, imported_at, indicators_created, indicators_updated, total_objects). Archive entries (type='archive') additionally include files_processed, files_succeeded, files_failed, files_parsed, files_errored, and files_skipped fields for detailed filename tracking.","readOnly":true},"indicators_count":{"type":"integer","description":"Get the count of indicators in this collection","readOnly":true},"dz_owned":{"type":"boolean","readOnly":true,"default":false,"description":"Flag to mark Dropzone-owned collections (e.g., auto-loaded threat intel)"},"expires_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true,"description":"When set, internal threat intel search excludes this collection at and after this date."}},"required":["created_at","created_by","dz_owned","expires_at","file_info","id","indicators_count","name","status","updated_at","updated_by"]},"ThreatIntelCollectionStatusEnum":{"enum":["parsing","active","deleted","error"],"type":"string","description":"* `parsing` - Parsing\n* `active` - Active\n* `deleted` - Deleted\n* `error` - Error"}}},"paths":{"/app/api/v1/threat-intel/collections/{collection_id}":{"patch":{"operationId":"threat_intel_patch_external","description":"Update a Custom Threat Collection","parameters":[{"in":"path","name":"collection_id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["Custom Threat Collections"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedThreatIntelCollectionCoreSettings"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedThreatIntelCollectionCoreSettings"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedThreatIntelCollectionCoreSettings"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreatIntelCollection"}}},"description":"Updated collection"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Collection not found"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## PUT /app/api/v1/threat-intel/collections/{collection\_id}/files

> Replace all files in a Custom Threat Collection with a new STIX 2.x file or compressed archive.\
> \
> This endpoint replaces all existing collection content with the uploaded data.\
> \
> \*\*Supported Formats:\*\*\
> \- Single STIX JSON file (.json)\
> \- Compressed tar archives (.tar.gz, .tgz) containing multiple STIX files\
> \
> \*\*Size Limits:\*\*\
> \- File size: 100.0MB max<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"ImportResult":{"type":"object","description":"Serializer for ImportResult dataclass from threat intelligence imports","properties":{"file_type":{"nullable":true,"description":"Type of file processed\n\n* `single_file` - single_file\n* `archive` - archive","oneOf":[{"$ref":"#/components/schemas/FileTypeEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"collection_id":{"type":"string","nullable":true,"description":"UUID of the collection"},"collection_name":{"type":"string","nullable":true,"description":"Name of the collection"},"file_name":{"type":"string","nullable":true,"description":"Name of the uploaded file"},"file_hash":{"type":"string","nullable":true,"description":"SHA-256 hash of the uploaded file"},"files_processed":{"type":"integer","description":"Number of files processed (0 for single files)"},"files_succeeded":{"type":"integer","description":"Number of files that succeeded (0 for single files)"},"files_failed":{"type":"integer","description":"Number of files that failed (0 for single files)"},"files_parsed":{"type":"array","items":{"type":"string"},"description":"List of filenames that were successfully parsed (empty for single files)"},"files_errored":{"type":"array","items":{"type":"string"},"description":"List of filenames that had errors (empty for single files)"},"files_skipped":{"type":"array","items":{"type":"object","additionalProperties":{}},"description":"List of skipped files with reasons. Each entry has 'filename' and 'reason' keys. (empty for single files)"},"total_objects":{"type":"integer","description":"Total STIX objects processed"},"indicators":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Indicator counts"},"domain_objects":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Domain object counts"},"relationships":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Relationship counts"},"sightings":{"allOf":[{"$ref":"#/components/schemas/ObjectCounts"}],"description":"Sighting counts"},"error_count":{"type":"integer","description":"Total number of errors","readOnly":true}},"required":["domain_objects","error_count","files_errored","files_failed","files_parsed","files_processed","files_skipped","files_succeeded","indicators","relationships","sightings","total_objects"]},"FileTypeEnum":{"enum":["single_file","archive"],"type":"string","description":"* `single_file` - single_file\n* `archive` - archive"},"NullEnum":{"enum":[null]},"ObjectCounts":{"type":"object","description":"Serializer for ObjectCounts dataclass","properties":{"found":{"type":"integer","description":"Number of objects found"},"created":{"type":"integer","description":"Number of objects created"},"updated":{"type":"integer","description":"Number of objects updated"},"skipped":{"type":"integer","description":"Number of objects skipped"}},"required":["created","found","skipped","updated"]}}},"paths":{"/app/api/v1/threat-intel/collections/{collection_id}/files":{"put":{"operationId":"threat_intel_files_replace_external","description":"Replace all files in a Custom Threat Collection with a new STIX 2.x file or compressed archive.\n\nThis endpoint replaces all existing collection content with the uploaded data.\n\n**Supported Formats:**\n- Single STIX JSON file (.json)\n- Compressed tar archives (.tar.gz, .tgz) containing multiple STIX files\n\n**Size Limits:**\n- File size: 100.0MB max\n","parameters":[{"in":"path","name":"collection_id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["Custom Threat Collections"],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"STIX JSON file or compressed tar archive"}},"required":["file"]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResult"}}},"description":"Successfully processed"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - missing file or invalid MIME type"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Collection not found"},"413":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"File too large - exceeds 100.0MB"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Internal server error - file processing failed or file save failed during async upload"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"},"507":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Insufficient storage space on server"}}}}}}
```

## POST /app/api/v1/threat-intel/collections/bulk-delete

> Bulk delete Custom Threat Collections. Skips non-existent and already-deleted collections.

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"BulkDeleteCollectionsRequest":{"type":"object","description":"Request serializer for bulk delete collections endpoint.","properties":{"collection_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of collection UUIDs to delete","minItems":1}},"required":["collection_ids"]},"BulkDeleteCollectionsResponse":{"type":"object","properties":{"deleted_count":{"type":"integer","description":"Number of collections successfully deleted"}},"required":["deleted_count"]}}},"paths":{"/app/api/v1/threat-intel/collections/bulk-delete":{"post":{"operationId":"threat_intel_bulk_delete_external","description":"Bulk delete Custom Threat Collections. Skips non-existent and already-deleted collections.","tags":["Custom Threat Collections"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteCollectionsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteCollectionsResponse"}}},"description":"Bulk delete completed"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - missing or invalid collection_ids"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```
