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
| 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. |
| approval | Object | The approval object. |
employeesoptional | String[] | List of employee IDs to approve. |
filteroptional | String | Filter containing employees to approve in json structure. It's ignored if 'employees' property is used. |
fromoptional | Date | Approve registrations starting this day. |
registrationsoptional | Number[] | List of registrations IDs (trans_seq) to approve. Can't be used with 'employees' or 'from' / 'to'. |
tooptional | Date | Approve registrations ending this day. |
typesoptional | String[] | 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]}}}}