ProReport - Get report

API Url

Used for loading a specific report that can be executed.

GET
http://localhost:16010/ProMarkREST/rest/ProReport/reports/{id}

Permissions: user

Path parameters

FieldTypeDescription
idString

Report unique identifier.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    reportsObject[]

Collection of reports.

      categoryIdString

The id of the report category. Used to group reports together.

      favoriteBoolean

true=This is a favorite report.

      idString

Report unique identifier.

      nameString

Name of the report.

      parentIdString

Unique identifier of the parent report that was used for creating this custom report. Only when standard = false.

      standardBoolean

true=Standard report, false=Custom report.

      typeNumber

Report type (0=Classic report, 1=Excel report, 3=Host report).

Size range: 0-3
  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"reports": [
{
"id": "Absence01",
"name": "Absence rules on totals 120 days",
"categoryId": "1",
"type": 0,
"favorite": false,
"standard": true,
"parentId": ""
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.