PUT api/Timesheets/{id}/Header

update the timesheet header data for a single timesheet

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

timesheet Id

integer

Required

Body Parameters

TimesheetHeaderData
NameDescriptionTypeAdditional information
CostCentre

string

None.

CostCode

string

None.

PurchaseOrder

string

None.

ProductCode

string

None.

Comments

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CostCentre": "sample string 1",
  "CostCode": "sample string 2",
  "PurchaseOrder": "sample string 3",
  "ProductCode": "sample string 4",
  "Comments": "sample string 5"
}

text/xml

Sample:
<TimesheetHeaderData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <Comments>sample string 5</Comments>
  <CostCentre>sample string 1</CostCentre>
  <CostCode>sample string 2</CostCode>
  <ProductCode>sample string 4</ProductCode>
  <PurchaseOrder>sample string 3</PurchaseOrder>
</TimesheetHeaderData>

multipart/form-data

Sample:
<TimesheetHeaderData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><Comments>sample string 5</Comments><CostCentre>sample string 1</CostCentre><CostCode>sample string 2</CostCode><ProductCode>sample string 4</ProductCode><PurchaseOrder>sample string 3</PurchaseOrder></TimesheetHeaderData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

COMPLETE

TimesheetHeaderData
NameDescriptionTypeAdditional information
CostCentre

string

None.

CostCode

string

None.

PurchaseOrder

string

None.

ProductCode

string

None.

Comments

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CostCentre": "sample string 1",
  "CostCode": "sample string 2",
  "PurchaseOrder": "sample string 3",
  "ProductCode": "sample string 4",
  "Comments": "sample string 5"
}

text/xml

Sample:
<TimesheetHeaderData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <Comments>sample string 5</Comments>
  <CostCentre>sample string 1</CostCentre>
  <CostCode>sample string 2</CostCode>
  <ProductCode>sample string 4</ProductCode>
  <PurchaseOrder>sample string 3</PurchaseOrder>
</TimesheetHeaderData>

multipart/form-data

Sample:
<TimesheetHeaderData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><Comments>sample string 5</Comments><CostCentre>sample string 1</CostCentre><CostCode>sample string 2</CostCode><ProductCode>sample string 4</ProductCode><PurchaseOrder>sample string 3</PurchaseOrder></TimesheetHeaderData>