ProReport - Search

API Url

Search for reports within ProReport

GET
http://localhost:16010/ProMarkREST/rest/ProReport/search/{text}

Permissions: user

Path parameters

FieldTypeDescription
TextString

to search.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    resultsObject[]

Search results.

      descString

Description.

      idString

Unique identifier. Can be a report or a report instance.

      parentIdNumber

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

Size range: 1-2
      reportTypeNumber

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

Size range: 1-2
      typeNumber

Result type (1=Reports, 2=Report instances).

Size range: 1-2
  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example when searching for 'efficiency':

HTTP/1.1 200 OK
{
"response": {
"data": {
"results": [
{
"id": "Job01",
"desc": "Department/employee efficiency",
"type": 1,
"ReportType": 0,
"parentId": ""
},
{
"id": "Rep010101",
"desc": "Department/employee efficiency for September 2016",
"type": 2,
"ReportType": 0,
"parentId": "Job01"
}
]
},
"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.