API Details
POST Api/OLR/{unitId}/{fyopWeekId}/Sales
Adjust staffing for a specific job and shift
Request Information
Parameters
| Name | Description |
|---|---|
| unitId | Unit ID |
| fyopWeekId | FYOP and week ID |
| body | Contains the day number, new projected sales, and shift ID |
Request body formats
application/json, text/json
Sample:
{
"ProjectedSales": 1,
"DayNumber": 2,
"ShiftID": 1
}
application/x-www-form-urlencoded
Sample:
Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AdjustStaffingProjectedSalesApiRequest'.
Response Information
Response body formats
application/json, text/json
Sample:
{
"ShiftItemChange": {
"day": 1,
"shft": 2,
"lsls": 3,
"psls": 4,
"basepsls": 5,
"ltgsls": 6,
"ptgsls": 7,
"note": "sample string 8"
},
"ShiftJobChanges": [
{
"header": {
"unitid": 1,
"opwkid": 2,
"op": 3,
"wk": 4,
"canedt": true,
"cancpy": true,
"canrst": true,
"ver": "sample string 8",
"cer": true,
"cerdt": "sample string 10",
"cerby": "sample string 11",
"lastadjdt": "sample string 12",
"lastadjby": "sample string 13",
"fav": true,
"note": "sample string 15",
"praccntp": "sample string 16",
"pracctp": "sample string 17",
"colorntp": "sample string 18",
"colortp": "sample string 19"
},
"shift_job_item": {
"day": 1,
"shft": 2,
"job": "sample string 3",
"basebrk": 4,
"adjbrk": 5,
"pplhrs": "sample string 6",
"diff": "sample string 7",
"chg": true
}
},
{
"header": {
"unitid": 1,
"opwkid": 2,
"op": 3,
"wk": 4,
"canedt": true,
"cancpy": true,
"canrst": true,
"ver": "sample string 8",
"cer": true,
"cerdt": "sample string 10",
"cerby": "sample string 11",
"lastadjdt": "sample string 12",
"lastadjby": "sample string 13",
"fav": true,
"note": "sample string 15",
"praccntp": "sample string 16",
"pracctp": "sample string 17",
"colorntp": "sample string 18",
"colortp": "sample string 19"
},
"shift_job_item": {
"day": 1,
"shft": 2,
"job": "sample string 3",
"basebrk": 4,
"adjbrk": 5,
"pplhrs": "sample string 6",
"diff": "sample string 7",
"chg": true
}
},
{
"header": {
"unitid": 1,
"opwkid": 2,
"op": 3,
"wk": 4,
"canedt": true,
"cancpy": true,
"canrst": true,
"ver": "sample string 8",
"cer": true,
"cerdt": "sample string 10",
"cerby": "sample string 11",
"lastadjdt": "sample string 12",
"lastadjby": "sample string 13",
"fav": true,
"note": "sample string 15",
"praccntp": "sample string 16",
"pracctp": "sample string 17",
"colorntp": "sample string 18",
"colortp": "sample string 19"
},
"shift_job_item": {
"day": 1,
"shft": 2,
"job": "sample string 3",
"basebrk": 4,
"adjbrk": 5,
"pplhrs": "sample string 6",
"diff": "sample string 7",
"chg": true
}
}
]
}
