ProRoster - Approve/reject bids
API Url
Use it for approving/rejecting one or more bids in ProSchedule
PUT
http://localhost:16010/ProMarkREST/rest/ProRoster/bids
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| bids | Object[] | Array of bids to approve/reject. |
| action | String | Action to do ("approve", "reject"). "approve""reject" |
commentoptional | String | Comment for rejection. |
| id | Number | Unique identifier of the bid. |
Request example:
{"request": {"data": {"bids": [{"id": 123456789,"action": "approve"},{"id": 987654321,"action": "reject","comment": "Too many shifts this week"}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
HTTP/1.1 422 Unprocessable entity{"response": {"data": {"bidApprovalErrors": [{"id": 2163193580,"empId": "834","empNo": "RST1","empName": "John Thompson Doe","date": "2018-11-16","description": "The demand is overlapping another existing demand"},{"id": 2163193600,"empId": "834","empNo": "RST1","empName": "John Thompson Doe","date": "2018-11-18","description": "Department -1 cannot be used with category BH"}]},"errorCode": 42,"errorMessage": "There were errors when approving some of the bids."}}