Update an individual roster shift
PUT https://api.yourpayroll.com.au/api/v2/business/{businessId}/rostershift/{rosterShiftId}
Parameter name | Value | Description | Additional |
---|---|---|---|
rosterShiftId | int32 | Required | |
businessId | string | Required |
Parameter name | Value | Description | Additional |
---|---|---|---|
publish | boolean | Required | |
clearBreaks | boolean | Required |
The request body takes a complete AuRosterShiftEditModel resource, containing the following writable properties:
{
"breaks": [
{
"endTime": "date-time",
"id": "int32",
"isPaidBreak": "boolean",
"startTime": "date-time"
}
],
"classificationId": "int32",
"classificationName": "string",
"employeeId": "int32",
"employeeName": "string",
"endTime": "date-time",
"id": "int32",
"locationId": "int32",
"locationName": "string",
"notes": "string",
"qualifications": [
{
"id": "int32",
"name": "string"
}
],
"role": {
"className": "string",
"hexColourCode": "string",
"id": "int32",
"name": "string"
},
"startTime": "date-time",
"workTypeId": "int32",
"workTypeName": "string"
}
Name | Type | Description |
---|---|---|
breaks[] | array | |
breaks[].endTime | date-time | DateTime |
breaks[].id | int32 | Int32 |
breaks[].isPaidBreak | boolean | Boolean |
breaks[].startTime | date-time | DateTime |
classificationId | int32 |
Nullable |
classificationName | string | String |
employeeId | int32 |
Nullable |
employeeName | string | String |
endTime | date-time | DateTime |
id | int32 | Int32 |
locationId | int32 |
Nullable |
locationName | string | String |
notes | string | String |
qualifications[] | array | |
qualifications[].id | int32 | Int32 |
qualifications[].name | string | String |
role | object | RosterShiftRole |
role.className | string | String |
role.hexColourCode | string | String |
role.id | int32 | Int32 |
role.name | string | String |
startTime | date-time | DateTime |
workTypeId | int32 |
Nullable |
workTypeName | string | String |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK OK |
Powered by DapperDox