ProRoster - Get one demand
API Url
Use it for loading a demand by id.
http://localhost:16010/ProMarkREST/rest/ProRoster/demands/{id}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | Number | The demand unique identifier. |
Query parameters
| Field | Type | Description |
|---|---|---|
expandoptional | String | Expand specified properties (comma delimiter) with descriptions. Only the "bids" can be expanded so far. |
fieldsoptional | String | List of fields with comma delimiter to include in the response. Example to get only 2 attributes fields=dayProfile,normalTime. |
pendingBidsoptional | Boolean | TRUE = filtering the bids waiting for approval. |
Parameter
| Field | Type | Description |
|---|---|---|
ignoreDayProfileoptional | Object[] | |
| isLocked | Boolean | Is the attribute locked. |
| value | Boolean |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| demands | Object[] | |
acceptBeforeoptional | Object[] | |
daysoptional | Number | Accept days before shift takes place. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
approvalGroupoptional | Object[] | |
descriptionoptional | String | Description of the approvalGroup. |
idoptional | String | Id of the approvalGroup. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
assignmentMethodoptional | Object[] | |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
methodoptional | String | Assignment methode Automatic = "A" or Manual "M". |
attendanceTimeoptional | Object[] | Attendance time interval. |
endTimeoptional | Number | End time of the interval in seconds. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | |
startTimeoptional | Number | Start time of the interval in seconds. |
| backColor | String | BackGround color in HEX without #. |
| baseDemandId | Number | The Id of the base demand from which the demand was created. |
| bids | Object[] | List of demands. |
| approverId | String | The user id who approved the bid. |
| comment | String | Employee's comment. |
| demandId | Number | The Id of the plan on which was bidded. |
| empId | String | The Id of the employee who bidded on the shift. |
| empName | String | The name of the employee who bidded on the shift. |
| id | Number | The Id of the bid. |
| status | String | 1: Employee has bid on the shift. 2: The employee has been assigned the shift. 3: Declined. The employee has been declined by the Manager/Approver. |
categoryoptional | Object[] | |
descriptionoptional | String | Description of the category. |
idoptional | String | Id of the category. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
closedBiddingoptional | Boolean | Is the demand closed for bidding or not. Relevant only if the demand was published to ESM. |
| counter | Number | Counts the assigned demands of this demand. |
| date | Date | The date of the demand . |
dayProfileoptional | Object[] | The day profile object. |
backColoroptional | String | BackGround color. |
| description | String | Description of the day profile. |
endTimeoptional | Number | Normal time end of day profile. |
foreColoroptional | String | ForeGround color. |
idoptional | String | Day profile ID. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| isVariable | Boolean | True if day profile is variable. |
startTimeoptional | Number | Normal time start of day profile. |
departmentoptional | Object[] | |
descriptionoptional | String | Description of the department. |
idoptional | String | Id of the department. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| description | String | Description of the demand. |
| foreColor | String | ForeGround color in HEX without #. |
groupoptional | Object[] | |
descriptionoptional | String | Description of the group. |
idoptional | String | Id of the group. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| id | Number | The Id of the demand. |
| isPublished | Boolean | Is the demand published or not. |
maximumBidsoptional | Object[] | |
amountoptional | Number | Number of employees to bid in. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| name | String | The name of the demand . |
normalTimeoptional | Object[] | Normal time interval for variable day profiles. |
endTimeoptional | Number | End time of the interval in seconds. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
startTimeoptional | Number | Start time of the interval in seconds. |
| notes | Object[] | |
| id | Number | Id of the note. |
| isEmpNote | Boolean | TRUE if the note is an employee note. |
| text | String | Note's text. |
| planId | Number | The Id of the plan. |
qualificationSetupoptional | Object[] | |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
qualificationoptional | Object[] | |
descriptionoptional | String | Description of the qualification. |
empQualIdoptional | String | Id of the employee qualification. |
idoptional | Number | Id of the demand qualification. |
orderoptional | Number | Order of qualifications. |
primaryoptional | Boolean | true = This is a primary qualification. |
| requiredEmployees | Object[] | |
| amount | Number | Number of employees |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| version | Number | Version number of the demand. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"planDemands": [{"id": 2153908066,"baseDemandId": 2134557518,"planId": 2153557517,"counter": 2,"date": "2021-08-24","name": "Waiter, faress","description": "blah, blah, blah, blah, blah","foreColor": "000040","backColor": "000050","version": 1,"isPublished": true,"closedBidding": false,"attendanceTime": [{"startTime": 0,"endTime": 3600,"isRequired": false,"isLocked": true}],"dayProfile": [{"id": "DAY","startTime": 46800,"endTime": 61200,"description": "Day Shift 13:00 - 17:00","isVariable": false,"foreColor": "000080","backColor": "00FF40","isRequired": false,"isLocked": true}],"requiredEmployees": [{"amount": 5,"isRequired": true,"isLocked": true}],"department": [{"id": "0000007215","description": "SAP-HR-department 15","isRequired": false,"isLocked": true}],"assignmentMethod": [{"isRequired": false,"isLocked": false}],"group": [{"id": "1","description": "BH1","isRequired": false,"isLocked": true}],"approvalGroup": [{"id": "01","description": "Kem Default","isRequired": true,"isLocked": true}],"maximumBids": [{"amount": 10,"isRequired": true,"isLocked": true}],"category": [{"id": "02","description": "Part-day absence","isRequired": false,"isLocked": true}],"ignoreDayProfile": [{"value": true,"isLocked": true}],"acceptBefore": [{"days": 2,"isRequired": false,"isLocked": true}],"qualificationSetup": [{"isRequired": true,"isLocked": true,"qualifications": [{"id": "1","description": "Welding certificate f","primary": true,"order": 1},{"id": "2","description": "Truck certificate","primary": true,"order": 2}]}],"bids": [{"id": 2163180529,"demandId": 2163182268,"empId": "951","empName": "Joey Tribiani","comment": "Also available next week","status": 2,"approverId": "CMD"}]}]},"errorCode": 0,"errorMessage": ""}}
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. |