PUT api/DSM/TimeSheet/{TimeSheetCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
TimeSheetCode

string

Required

Body Parameters

TimeSheetUpdate
NameDescriptionTypeAdditional information
workOrderId

integer

None.

endDate

string

None.

startTime

string

None.

endTime

string

None.

breakTime

integer

None.

timeSheetComments

Collection of TimeSheetComment

None.

Request Formats

application/json, text/json

Sample:
{
  "workOrderId": 1,
  "endDate": "sample string 2",
  "startTime": "sample string 3",
  "endTime": "sample string 4",
  "breakTime": 5,
  "timeSheetComments": [
    {
      "timeSheetCommentId": 1,
      "timeSheetId": 2,
      "userId": 3,
      "type": "sample string 4",
      "comment": "sample string 5",
      "createdOn": "2024-06-29T07:06:55.7014585+10:00"
    },
    {
      "timeSheetCommentId": 1,
      "timeSheetId": 2,
      "userId": 3,
      "type": "sample string 4",
      "comment": "sample string 5",
      "createdOn": "2024-06-29T07:06:55.7014585+10:00"
    }
  ]
}

text/xml

Sample:
<TimeSheetUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DSM">
  <BreakTime>5</BreakTime>
  <EndDate>sample string 2</EndDate>
  <EndTime>sample string 4</EndTime>
  <StartTime>sample string 3</StartTime>
  <TimeSheetComments>
    <TimeSheetComment>
      <Comment>sample string 5</Comment>
      <CreatedOn>2024-06-29T07:06:55.7014585+10:00</CreatedOn>
      <TimeSheetCommentId>1</TimeSheetCommentId>
      <TimeSheetId>2</TimeSheetId>
      <Type>sample string 4</Type>
      <UserId>3</UserId>
    </TimeSheetComment>
    <TimeSheetComment>
      <Comment>sample string 5</Comment>
      <CreatedOn>2024-06-29T07:06:55.7014585+10:00</CreatedOn>
      <TimeSheetCommentId>1</TimeSheetCommentId>
      <TimeSheetId>2</TimeSheetId>
      <Type>sample string 4</Type>
      <UserId>3</UserId>
    </TimeSheetComment>
  </TimeSheetComments>
  <WorkOrderId>1</WorkOrderId>
</TimeSheetUpdate>

multipart/form-data

Sample:
<TimeSheetUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DSM"><BreakTime>5</BreakTime><EndDate>sample string 2</EndDate><EndTime>sample string 4</EndTime><StartTime>sample string 3</StartTime><TimeSheetComments><TimeSheetComment><Comment>sample string 5</Comment><CreatedOn>2024-06-29T07:06:55.7014585+10:00</CreatedOn><TimeSheetCommentId>1</TimeSheetCommentId><TimeSheetId>2</TimeSheetId><Type>sample string 4</Type><UserId>3</UserId></TimeSheetComment><TimeSheetComment><Comment>sample string 5</Comment><CreatedOn>2024-06-29T07:06:55.7014585+10:00</CreatedOn><TimeSheetCommentId>1</TimeSheetCommentId><TimeSheetId>2</TimeSheetId><Type>sample string 4</Type><UserId>3</UserId></TimeSheetComment></TimeSheetComments><WorkOrderId>1</WorkOrderId></TimeSheetUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StatusMessage
NameDescriptionTypeAdditional information
Status

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2"
}

text/xml

Sample:
<StatusMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models">
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</StatusMessage>

multipart/form-data

Sample:
<StatusMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models"><Message>sample string 2</Message><Status>sample string 1</Status></StatusMessage>