PUT api/Timesheets/{id}/expenses

update the timesheet Expense for a single timesheet

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

timesheet Id

integer

Required

Body Parameters

timesheet Expense

TimesheetExpense
NameDescriptionTypeAdditional information
ProductSummaryId

integer

None.

TimesheetId

integer

None.

ProductCode

string

None.

Pay

decimal number

None.

GST

decimal number

None.

WorkDate

date

None.

TimesheetIntervalId

integer

None.

Comment

string

None.

CostCentre

string

None.

CostCode

string

None.

ProjectCode

string

None.

PurchaseOrder

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductSummaryId": 1,
  "TimesheetId": 2,
  "ProductCode": "sample string 3",
  "Pay": 1.0,
  "GST": 1.0,
  "WorkDate": "2024-06-29T07:18:58.0317004+10:00",
  "TimesheetIntervalId": 1,
  "Comment": "sample string 4",
  "CostCentre": "sample string 5",
  "CostCode": "sample string 6",
  "ProjectCode": "sample string 7",
  "PurchaseOrder": "sample string 8"
}

text/xml

Sample:
<TimesheetExpense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <Comment>sample string 4</Comment>
  <CostCentre>sample string 5</CostCentre>
  <CostCode>sample string 6</CostCode>
  <GST>1</GST>
  <Pay>1</Pay>
  <ProductCode>sample string 3</ProductCode>
  <ProductSummaryId>1</ProductSummaryId>
  <ProjectCode>sample string 7</ProjectCode>
  <PurchaseOrder>sample string 8</PurchaseOrder>
  <TimesheetId>2</TimesheetId>
  <TimesheetIntervalId>1</TimesheetIntervalId>
  <WorkDate>2024-06-29T07:18:58.0317004+10:00</WorkDate>
</TimesheetExpense>

multipart/form-data

Sample:
<TimesheetExpense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><Comment>sample string 4</Comment><CostCentre>sample string 5</CostCentre><CostCode>sample string 6</CostCode><GST>1</GST><Pay>1</Pay><ProductCode>sample string 3</ProductCode><ProductSummaryId>1</ProductSummaryId><ProjectCode>sample string 7</ProjectCode><PurchaseOrder>sample string 8</PurchaseOrder><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><WorkDate>2024-06-29T07:18:58.0317004+10:00</WorkDate></TimesheetExpense>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

COMPLETEIntTimesheetIntervalId

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>