Approval - Approve employee registrations

API Url

Use it for approving one or more employee registrations where the body selects what registrations do you need to handle via a filter.

PUT
http://localhost:16010/ProMarkREST/web/Approval/employees/approval

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.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    approvalObject

The approval object.

      employeesoptionalString[]

List of employee IDs to approve.

      filteroptionalString

Filter containing employees to approve in json structure. It's ignored if 'employees' property is used.

      fromoptionalDate

Approve registrations starting this day.

      registrationsoptionalNumber[]

List of registrations IDs (trans_seq) to approve. Can't be used with 'employees' or 'from' / 'to'.

      tooptionalDate

Approve registrations ending this day.

      typesoptionalString[]

List of registrations types to approve.

Request example:

{
"request": {
"data": {
"approval": {
"employees": ["100","200"],
                     "from": "2023-01-01",
"to": "2023-01-14",
"types": ["AB","PR]
}
}
}
}