ProRoster - Update base demand
API Url
Use it for updating a base demand .
http://localhost:16010/ProMarkREST/rest/ProRoster/base-demands
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| baseDemands | Object[] | List of Base Demands. |
approvalGroupoptional | Object[] | |
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 | Is the attribute required. |
startTimeoptional | Number | Start time of the interval in seconds. |
backColoroptional | String | BackGround color in HEX without #. |
categoryoptional | Object[] | |
| id | String | Id of the category. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
dayProfileoptional | Object[] | |
idoptional | String | |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
daysBeforeoptional | Object[] | |
daysoptional | Number | Accept days before shift takes place. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
departmentoptional | Object[] | |
idoptional | String | Id of the department. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| isStrict | Boolean | True = you cannot assign the demand unless the employee has the same department. |
descriptionoptional | String | Description of the base demand. |
favoriteoptional | Boolean | True if base demand is favorite. |
foreColoroptional | String | ForeGround color in HEX without #. |
groupoptional | Object[] | |
idoptional | String | Id of the group. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| isStrict | Boolean | True = you cannot assign the demand unless the employee has the same group. |
ignoreDayProfileoptional | Object[] | |
| isLocked | Boolean | Is the attribute locked. |
| value | Boolean | |
inactiveoptional | Boolean | True if the base demand is inactive. |
maximumBidsoptional | Object[] | |
| amount | 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 base demand . |
normalTimeoptional | Object[] | Normal time interval for variable day profiles. |
endTimeoptional | Number | End time of the interval in seconds. |
startTimeoptional | Number | Start time of the interval in seconds. |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| objectId | Number | The Id of the base demand. |
qualificationSetupoptional | Object[] | |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
qualificationsoptional | Object[] | |
| id | Number | Id of the employee qualification. |
| order | Number | |
| primary | Boolean | |
| requiredEmployees | Object[] | |
| amount | Number | Number of employees |
| isLocked | Boolean | Is the attribute locked. |
| isRequired | Boolean | Is the attribute required. |
| userProfiles | String[50] | Restriction on user profiles for the demand |
| users | String[50] | Restriction on users for the demand |
| visibility | String | If the plan is global or private. "P""G" |
Request example:
HTTP/1.1 200 OK{"request": {"data": {"baseDemand": [{"objectId": 2153900338,"name": "Waiter, razvan132","inactive": false,"favorite": true,"visibility": "P","description": "blah, blah, blah, blah, blah","foreColor": "123400","backColor": "567800","version": 1,"userProfiles":["PROF","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"users":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"attendanceTime": [{"startTime": 0,"endTime": 3600,"isRequired": false,"isLocked": true}],"normalTime": [{"startTime": 0,"endTime": 3600,"isRequired": false,"isLocked": true}],"dayProfile": [{"id": "DAY","isRequired": false,"isLocked": true}],"requiredEmployees": [{"amount": 3,"isRequired": false,"isLocked": true}],"department": [{"id": "0000007215","isRequired": false,"isLocked": true,"isStrict": true}],"assignmentMethod": [{"method": "A","isRequired": false,"isLocked": true}],"group": [{"id": "1","isRequired": false,"isLocked": true,"isStrict": false}],"approvalGroup": [{"id": "01","isRequired": true,"isLocked": true}],"maximumBids": [{"amount": 9,"isRequired": false,"isLocked": true}],"category": [{"id": "02","isRequired": false,"isLocked": true}],"ignoreDayProfile": [{"value": true,"isLocked": true}],"daysBefore": [{"days": 2,"isRequired": false,"isLocked": true}],"qualifications": [{"id": 2153900339,"empQualId": "3","primary": true,"order": 1,"isRequired": true,"isLocked": true}]}]}}}
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. |