PUT api/Timesheets/{id}/attachments

update the timesheet Attachments for a single timesheet

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

timesheet Id

integer

Required

Body Parameters

timesheet Attachments

TimesheetAttachmentwithImage
NameDescriptionTypeAdditional information
AttachmentId

integer

None.

TimesheetId

integer

None.

ProductSummaryId

integer

None.

Filename

string

None.

Type

string

None.

Image

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AttachmentId": 1,
  "TimesheetId": 2,
  "ProductSummaryId": 1,
  "Filename": "sample string 3",
  "Type": "sample string 4",
  "Image": "sample string 5"
}

text/xml

Sample:
<TimesheetAttachmentwithImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <AttachmentId>1</AttachmentId>
  <Filename>sample string 3</Filename>
  <Image>sample string 5</Image>
  <ProductSummaryId>1</ProductSummaryId>
  <TimesheetId>2</TimesheetId>
  <Type>sample string 4</Type>
</TimesheetAttachmentwithImage>

multipart/form-data

Sample:
<TimesheetAttachmentwithImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><AttachmentId>1</AttachmentId><Filename>sample string 3</Filename><Image>sample string 5</Image><ProductSummaryId>1</ProductSummaryId><TimesheetId>2</TimesheetId><Type>sample string 4</Type></TimesheetAttachmentwithImage>

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>