Files

Get details of a file by Id

Get file details of a given fileId. If the remote flag is true, it'll fetch the corresponding remote file info, otherwise by default the flag is false and scanner file information will be shown.

Request
path Parameters
fileId
required
integer <int32>

ID of the File

Example: E.g. 1
query Parameters
isRemote
boolean
Default: false

if true, fetch results of corresponding remote file

header Parameters
Authorization
required
string
Default:

Bearer JWT Token

Example: E.g. Bearer JWT_TOKEN
Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

get/files/{fileId}

Mark file reviewed/unreviewed

For the given fileId mark as reviewed/unreviewed. Only the Analyst has the permission to do this operation.

Request
path Parameters
fileId
required
integer <int32>

ID of the File

Example: E.g. 1
query Parameters
isRemote
boolean
Default: false

if true, fetch results of corresponding remote file

markAsReviewed
boolean
Default: false

if true, mark file as reviewed

header Parameters
Authorization
required
string
Default:

Bearer JWT Token

Example: E.g. Bearer JWT_TOKEN
Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

put/files/{fileId}/review