Approval - Reject employee registrations

API Url

Use it for rejecting 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/rejection

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.

      filteroptionalString

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

    rejectionObject

The rejection object.

      commentoptionalString

Optional comment used for rejecting the registrations.

      employeesoptionalString[]

List of employee IDs to reject.

      fromoptionalDate

Reject registrations starting this day.

      reasonoptionalString

The Reason code used for rejecting the registrations.

      registrationsoptionalNumber[]

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

      tooptionalDate

Reject registrations ending this day.

      typesoptionalString[]

List of registrations types to approve.

Request example:

{
"request": {
"data": {
"approval": {
"registrations": [12345, 23456],
"reason": "REJ1",
"comment": "I need you in stand-by"
}
}
}
}