Route: https://api.cytrix.io/CreateReport
You can use this function to start the process of creating a report that summarizes a particular scan.
Roles Required: Admin and Users. Private Users can only Create Reports for Scans they have created.
Request Syntax
{
"apiKey": "String",
"type": json|doc|pdf|html|csv|xml|executive summary|bir|dev|black,
"token": "String",
"vulnsIds": ["111", "222"]
}
Request Parameters
Parameters being used in the Request
Parameter Name :
apiKey
Parameter Usage and Options :
Your CYTRIX given API Key.
How do I get it ? :
Located in the “Profile” section.
Note: by default, the “API Status” is enabled, unless, the Admin has disabled it in the “Server Settings” section.
Type :
String
Is it Optional? :
No.
Parameter Name :
type
Parameter Usage and Options :
The type/format of the report you wish to export. To learn more about Report Types.
Value :
json| docx| pdf| html| csv| xml| executive summary| bir (Business Impact Report)| dev(Developer)| black(Blacked Report).
Type :
String
Is it Optional? :
No.
Parameter Name :
token
Parameter Usage and Options :
The scan’s token.
How do I get it? :
Simply use the “GetScan” or “GetAllScans” function, or navigate to a certain scan’s page, and in the address bar, you will notice “token=String”, use that String.
Type :
String
Is it Optional? :
No.
Parameter Name :
vulnsIds
Parameter Usage and Options :
The ID’s of the requested vulnerabilities.
How do I get it ? :
By entering the vulnerability page in CYTRIX, on the address bar, the “id=231231232133”, uses the number that appears.
Type :
String
Is it Optional ? :
Yes.
Successful Response
{
"Errors": "0",
"Function": "CreateReport",
"data": {},
}
Errors and their Possible Causes
For more information, please refer to the General Errors section.