Upload malware .pa archive
POST
/malware/uploadContract
Parameter | Value |
|---|---|
| Section | malware |
| Authentication | CookieAuth |
| Consumes | multipart/form-data |
| Produces | application/json |
Parameters
1 parameter
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| file | formData | yes | file | .pa archive to import |
{}
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Imported package | object |
400 | No file provided | object |
401 | Unauthorized | object |
500 | Failed to save or import archive | object |
507 | Insufficient space for upload or import | object |
{ "createdAt": "<string>", "fileName": "<string>", "id": 0, "issuerID": 0, "name": "<string>", "samplesImported": 0, "samplesSkipped": 0, "samplesTotal": 0, "size": 0 }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }