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.
http://localhost:16010/ProMarkREST/web/Approval/employees/rejection
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
filteroptional | String | Filter containing employees to reject in json structure. It's ignored if 'employees' property is used. |
| rejection | Object | The rejection object. |
commentoptional | String | Optional comment used for rejecting the registrations. |
employeesoptional | String[] | List of employee IDs to reject. |
fromoptional | Date | Reject registrations starting this day. |
reasonoptional | String | The Reason code used for rejecting the registrations. |
registrationsoptional | Number[] | List of registrations IDs (trans_seq) to reject. Can't be used with 'employees' or 'from' / 'to'. |
tooptional | Date | Reject registrations ending this day. |
typesoptional | String[] | List of registrations types to approve. |
Request example:
{"request": {"data": {"approval": {"registrations": [12345, 23456],"reason": "REJ1","comment": "I need you in stand-by"}}}}