PUT api/Timesheets/{id}/shifts

update the timesheet shift for a single timesheet

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

timesheet number

integer

Required

Body Parameters

timesheet Interval

TimesheetInterval
NameDescriptionTypeAdditional 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:25:52.7514475+10:00",
  "EndDateTime": "2024-06-29T07:25:52.7514475+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:
<TimesheetInterval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <BreakTime>1</BreakTime>
  <Comment>sample string 7</Comment>
  <CostCentre>sample string 3</CostCentre>
  <CostCode>sample string 4</CostCode>
  <EndDateTime>2024-06-29T07:25:52.7514475+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:25:52.7514475+10:00</StartDateTime>
  <TimesheetId>2</TimesheetId>
  <TimesheetIntervalId>1</TimesheetIntervalId>
  <TotalDays>1</TotalDays>
  <TotalHours>1</TotalHours>
  <TotalMinutes>1</TotalMinutes>
</TimesheetInterval>

multipart/form-data

Sample:
<TimesheetInterval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><BreakTime>1</BreakTime><Comment>sample string 7</Comment><CostCentre>sample string 3</CostCentre><CostCode>sample string 4</CostCode><EndDateTime>2024-06-29T07:25:52.7514475+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:25:52.7514475+10:00</StartDateTime><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><TotalDays>1</TotalDays><TotalHours>1</TotalHours><TotalMinutes>1</TotalMinutes></TimesheetInterval>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InCOMPLETE

boolean

Response Formats

application/json, text/json

Sample:
true

text/xml, multipart/form-data

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>