POST api/Timesheets/{id}/Multishifts
Deletes existing shifts, then adds a number of timesheet shifts for a single timesheet
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
timesheet Id |
integer |
Required |
Body Parameters
timesheet Interval
Collection of TimesheetIntervalName | Description | Type | Additional information |
---|---|---|---|
TimesheetIntervalId | integer |
None. |
|
TimesheetId | integer |
None. |
|
StartDateTime | date |
None. |
|
EndDateTime | date |
None. |
|
BreakTime | integer |
None. |
|
CostCentre | string |
None. |
|
CostCode | string |
None. |
|
ProjectCode | string |
None. |
|
PurchaseOrder | string |
None. |
|
Comment | string |
None. |
|
ShiftType | string |
None. |
|
TotalDays | decimal number |
None. |
|
TotalHours | decimal number |
None. |
|
TotalMinutes | decimal number |
None. |
|
MaxWorkingHoursValidation | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[ { "TimesheetIntervalId": 1, "TimesheetId": 2, "StartDateTime": "2024-06-29T07:18:59.9506704+10:00", "EndDateTime": "2024-06-29T07:18:59.9506704+10:00", "BreakTime": 1, "CostCentre": "sample string 3", "CostCode": "sample string 4", "ProjectCode": "sample string 5", "PurchaseOrder": "sample string 6", "Comment": "sample string 7", "ShiftType": "sample string 8", "TotalDays": 1.0, "TotalHours": 1.0, "TotalMinutes": 1.0, "MaxWorkingHoursValidation": true }, { "TimesheetIntervalId": 1, "TimesheetId": 2, "StartDateTime": "2024-06-29T07:18:59.9506704+10:00", "EndDateTime": "2024-06-29T07:18:59.9506704+10:00", "BreakTime": 1, "CostCentre": "sample string 3", "CostCode": "sample string 4", "ProjectCode": "sample string 5", "PurchaseOrder": "sample string 6", "Comment": "sample string 7", "ShiftType": "sample string 8", "TotalDays": 1.0, "TotalHours": 1.0, "TotalMinutes": 1.0, "MaxWorkingHoursValidation": true } ]
text/xml
Sample:
<ArrayOfTimesheetInterval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"> <TimesheetInterval> <BreakTime>1</BreakTime> <Comment>sample string 7</Comment> <CostCentre>sample string 3</CostCentre> <CostCode>sample string 4</CostCode> <EndDateTime>2024-06-29T07:18:59.9506704+10:00</EndDateTime> <MaxWorkingHoursValidation>true</MaxWorkingHoursValidation> <ProjectCode>sample string 5</ProjectCode> <PurchaseOrder>sample string 6</PurchaseOrder> <ShiftType>sample string 8</ShiftType> <StartDateTime>2024-06-29T07:18:59.9506704+10:00</StartDateTime> <TimesheetId>2</TimesheetId> <TimesheetIntervalId>1</TimesheetIntervalId> <TotalDays>1</TotalDays> <TotalHours>1</TotalHours> <TotalMinutes>1</TotalMinutes> </TimesheetInterval> <TimesheetInterval> <BreakTime>1</BreakTime> <Comment>sample string 7</Comment> <CostCentre>sample string 3</CostCentre> <CostCode>sample string 4</CostCode> <EndDateTime>2024-06-29T07:18:59.9506704+10:00</EndDateTime> <MaxWorkingHoursValidation>true</MaxWorkingHoursValidation> <ProjectCode>sample string 5</ProjectCode> <PurchaseOrder>sample string 6</PurchaseOrder> <ShiftType>sample string 8</ShiftType> <StartDateTime>2024-06-29T07:18:59.9506704+10:00</StartDateTime> <TimesheetId>2</TimesheetId> <TimesheetIntervalId>1</TimesheetIntervalId> <TotalDays>1</TotalDays> <TotalHours>1</TotalHours> <TotalMinutes>1</TotalMinutes> </TimesheetInterval> </ArrayOfTimesheetInterval>
multipart/form-data
Sample:
<ArrayOfTimesheetInterval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><TimesheetInterval><BreakTime>1</BreakTime><Comment>sample string 7</Comment><CostCentre>sample string 3</CostCentre><CostCode>sample string 4</CostCode><EndDateTime>2024-06-29T07:18:59.9506704+10:00</EndDateTime><MaxWorkingHoursValidation>true</MaxWorkingHoursValidation><ProjectCode>sample string 5</ProjectCode><PurchaseOrder>sample string 6</PurchaseOrder><ShiftType>sample string 8</ShiftType><StartDateTime>2024-06-29T07:18:59.9506704+10:00</StartDateTime><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><TotalDays>1</TotalDays><TotalHours>1</TotalHours><TotalMinutes>1</TotalMinutes></TimesheetInterval><TimesheetInterval><BreakTime>1</BreakTime><Comment>sample string 7</Comment><CostCentre>sample string 3</CostCentre><CostCode>sample string 4</CostCode><EndDateTime>2024-06-29T07:18:59.9506704+10:00</EndDateTime><MaxWorkingHoursValidation>true</MaxWorkingHoursValidation><ProjectCode>sample string 5</ProjectCode><PurchaseOrder>sample string 6</PurchaseOrder><ShiftType>sample string 8</ShiftType><StartDateTime>2024-06-29T07:18:59.9506704+10:00</StartDateTime><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><TotalDays>1</TotalDays><TotalHours>1</TotalHours><TotalMinutes>1</TotalMinutes></TimesheetInterval></ArrayOfTimesheetInterval>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
COMPLETE
Collection of TimesheetIntervalName | Description | Type | Additional information |
---|---|---|---|
TimesheetIntervalId | integer |
None. |
|
TimesheetId | integer |
None. |
|
StartDateTime | date |
None. |
|
EndDateTime | date |
None. |
|
BreakTime | integer |
None. |
|
CostCentre | string |
None. |
|
CostCode | string |
None. |
|
ProjectCode | string |
None. |
|
PurchaseOrder | string |
None. |
|
Comment | string |
None. |
|
ShiftType | string |
None. |
|
TotalDays | decimal number |
None. |
|
TotalHours | decimal number |
None. |
|
TotalMinutes | decimal number |
None. |
|
MaxWorkingHoursValidation | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "TimesheetIntervalId": 1, "TimesheetId": 2, "StartDateTime": "2024-06-29T07:18:59.9518356+10:00", "EndDateTime": "2024-06-29T07:18:59.9518356+10:00", "BreakTime": 1, "CostCentre": "sample string 3", "CostCode": "sample string 4", "ProjectCode": "sample string 5", "PurchaseOrder": "sample string 6", "Comment": "sample string 7", "ShiftType": "sample string 8", "TotalDays": 1.0, "TotalHours": 1.0, "TotalMinutes": 1.0, "MaxWorkingHoursValidation": true }, { "TimesheetIntervalId": 1, "TimesheetId": 2, "StartDateTime": "2024-06-29T07:18:59.9518356+10:00", "EndDateTime": "2024-06-29T07:18:59.9518356+10:00", "BreakTime": 1, "CostCentre": "sample string 3", "CostCode": "sample string 4", "ProjectCode": "sample string 5", "PurchaseOrder": "sample string 6", "Comment": "sample string 7", "ShiftType": "sample string 8", "TotalDays": 1.0, "TotalHours": 1.0, "TotalMinutes": 1.0, "MaxWorkingHoursValidation": true } ]
text/xml
Sample:
<ArrayOfTimesheetInterval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"> <TimesheetInterval> <BreakTime>1</BreakTime> <Comment>sample string 7</Comment> <CostCentre>sample string 3</CostCentre> <CostCode>sample string 4</CostCode> <EndDateTime>2024-06-29T07:18:59.9518356+10:00</EndDateTime> <MaxWorkingHoursValidation>true</MaxWorkingHoursValidation> <ProjectCode>sample string 5</ProjectCode> <PurchaseOrder>sample string 6</PurchaseOrder> <ShiftType>sample string 8</ShiftType> <StartDateTime>2024-06-29T07:18:59.9518356+10:00</StartDateTime> <TimesheetId>2</TimesheetId> <TimesheetIntervalId>1</TimesheetIntervalId> <TotalDays>1</TotalDays> <TotalHours>1</TotalHours> <TotalMinutes>1</TotalMinutes> </TimesheetInterval> <TimesheetInterval> <BreakTime>1</BreakTime> <Comment>sample string 7</Comment> <CostCentre>sample string 3</CostCentre> <CostCode>sample string 4</CostCode> <EndDateTime>2024-06-29T07:18:59.9518356+10:00</EndDateTime> <MaxWorkingHoursValidation>true</MaxWorkingHoursValidation> <ProjectCode>sample string 5</ProjectCode> <PurchaseOrder>sample string 6</PurchaseOrder> <ShiftType>sample string 8</ShiftType> <StartDateTime>2024-06-29T07:18:59.9518356+10:00</StartDateTime> <TimesheetId>2</TimesheetId> <TimesheetIntervalId>1</TimesheetIntervalId> <TotalDays>1</TotalDays> <TotalHours>1</TotalHours> <TotalMinutes>1</TotalMinutes> </TimesheetInterval> </ArrayOfTimesheetInterval>
multipart/form-data
Sample:
<ArrayOfTimesheetInterval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><TimesheetInterval><BreakTime>1</BreakTime><Comment>sample string 7</Comment><CostCentre>sample string 3</CostCentre><CostCode>sample string 4</CostCode><EndDateTime>2024-06-29T07:18:59.9518356+10:00</EndDateTime><MaxWorkingHoursValidation>true</MaxWorkingHoursValidation><ProjectCode>sample string 5</ProjectCode><PurchaseOrder>sample string 6</PurchaseOrder><ShiftType>sample string 8</ShiftType><StartDateTime>2024-06-29T07:18:59.9518356+10:00</StartDateTime><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><TotalDays>1</TotalDays><TotalHours>1</TotalHours><TotalMinutes>1</TotalMinutes></TimesheetInterval><TimesheetInterval><BreakTime>1</BreakTime><Comment>sample string 7</Comment><CostCentre>sample string 3</CostCentre><CostCode>sample string 4</CostCode><EndDateTime>2024-06-29T07:18:59.9518356+10:00</EndDateTime><MaxWorkingHoursValidation>true</MaxWorkingHoursValidation><ProjectCode>sample string 5</ProjectCode><PurchaseOrder>sample string 6</PurchaseOrder><ShiftType>sample string 8</ShiftType><StartDateTime>2024-06-29T07:18:59.9518356+10:00</StartDateTime><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><TotalDays>1</TotalDays><TotalHours>1</TotalHours><TotalMinutes>1</TotalMinutes></TimesheetInterval></ArrayOfTimesheetInterval>