GET api/Timesheets/{id}/attachments/new

Gets the timesheet Attachments for a single timesheet with thumbnails using the Timesheet Number

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

COMPLETEThe Attachments array returns the Attachments for the particular timesheet.

Collection of TimesheetAttachment
NameDescriptionTypeAdditional information
AttachmentId

integer

None.

TimesheetId

integer

None.

ProductSummaryId

integer

None.

Filename

string

None.

OriginalFileName

string

None.

Type

string

None.

ThumbnailImage

string

None.

MIMEType

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AttachmentId": 1,
    "TimesheetId": 2,
    "ProductSummaryId": 1,
    "Filename": "sample string 3",
    "OriginalFileName": "sample string 4",
    "Type": "sample string 5",
    "ThumbnailImage": "sample string 6",
    "MIMEType": "sample string 7"
  },
  {
    "AttachmentId": 1,
    "TimesheetId": 2,
    "ProductSummaryId": 1,
    "Filename": "sample string 3",
    "OriginalFileName": "sample string 4",
    "Type": "sample string 5",
    "ThumbnailImage": "sample string 6",
    "MIMEType": "sample string 7"
  }
]

text/xml

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

multipart/form-data

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