Scan Results Manipulation

[ PUT ] https://api.malcore.io/api/scan

Manipulate a already processed scan using the API

Associated parameters:

  • name change the scan name

  • isPublic change whether the scan is public or not

NOTE: You can only perform one operation at a time, performing multiple will result in an error updating scan.

Example of publicizing a report from the API

curl -XPUT --form "isPublic=true" \
    -H "apiKey: MY-API-KEY" \
    https://api.malcore.io/api/scan/SCAN-I

Response

🟢 200 (success)

{
  "data": {
    "scanId": "SCAN-ID",
    "name": "REPORT-NAME",
    "isPublic": true,
    "publicUrl": "https://app.malcore.io/share/REPORT-ID/SCAN-ID"
  },
  "isMaintenance": false,
  "success": true,
  "messages": []
}

🟢 200 (error updating)

{
  "data": null,
  "success": false,
  "isMaintenance": false,
  "error": null,
  "messages": [
    {
      "type": "danger",
      "code": 200,
      "message": "Error updating scan"
    }
  ]
}
🔴 404
{}

Last updated