PUT api/Timesheets/{id}/SingleInterval

Update first date and last date for monthly timesheet as a single interval

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

TimesheetSingleIntervalDTO
NameDescriptionTypeAdditional information
startDate

string

None.

endDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "startDate": "sample string 1",
  "endDate": "sample string 2"
}

text/xml

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

multipart/form-data

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

Collection of string

None.

EntityId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "EntityId": 1,
  "Success": true
}

text/xml

Sample:
<JsonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models">
  <EntityId>1</EntityId>
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Success>true</Success>
</JsonResponse>

multipart/form-data

Sample:
<JsonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models"><EntityId>1</EntityId><ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></ErrorMessage><Success>true</Success></JsonResponse>