ProReport - Download report

API Url

Used for downloading a report in the specified format.

GET
http://localhost:16010/ProMarkREST/rest/ProReport/repository/{id}/formats/{format}

Permissions: user

Path parameters

FieldTypeDescription
formatString

The report format. For now it's only "CSV".

Allowed values:"CSV"
idString

Unique identifier of the report instance.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  fileContentString

The report content.

  fileNameString

Name of the downloaded file.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example:

HTTP/1.1 404 Not found
{
"response": {
"fileName": "",
"fileContent: "",
"errorCode": 285,
"errorMessage": "The report could not be found. Maybe it was deleted by another user."
}
}