ProReport - Get report group list

API Url

Use it to get report group list.

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

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
idString

Report id/parent id.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject[]
    groupsObject[]
      descriptionObject

Group description.

      textIdstring

Text id from systext.

      textTypeString

Text type from systext.

  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": {
"groups": [
{
"textId": "ttAbsIntv.DeptId,ttAbsIntv.DeptDescription",
"textType": "Other",
"description": "Current department ID,Current department description"
},
{
"textId": "AGE",
"textType": "SortEmp",
"description": "Age"
},
{
"textId": "APPROVAL GROUP",
"textType": "SortEmp",
"description": "Approval Group"
},
{
"textId": "ATTENDANCE PROFILE",
"textType": "SortEmp",
"description": "Attendance profile"
},
{
"textId": "CATEGORY",
"textType": "SortEmp",
"description": "Category"
},
{
"textId": "CURRENT DEPARTMENT",
"textType": "SortEmp",
"description": "Current Department"
},
{
"textId": "CURRENT GROUP",
"textType": "SortEmp",
"description": "Current Group"
},
{
"textId": "DIVISION",
"textType": "SortEmp",
"description": "Division"
},
{
"textId": "EDUCATION",
"textType": "SortEmp",
"description": "Education"
}
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.