POST api/WorkRequests/wrattachment?workRequestId={workRequestId}

To get remote attachment images

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workRequestId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of WorkRequestAttachment
NameDescriptionTypeAdditional information
ID

integer

None.

WorkRequestId

integer

None.

AttachmentID

integer

None.

UserName

string

None.

LastChanged

date

None.

Attachment

Attachment

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "WorkRequestId": 2,
    "AttachmentID": 3,
    "UserName": "sample string 4",
    "LastChanged": "2024-05-18T07:33:28.8026822Z",
    "Attachment": {
      "ID": 1,
      "AttachmentName": "sample string 2",
      "AttachmentContent": "QEA=",
      "AttachmentType": "sample string 3",
      "AccountID": 4,
      "UserName": "sample string 5",
      "LastChanged": "2024-05-18T07:33:28.8026822Z"
    }
  },
  {
    "ID": 1,
    "WorkRequestId": 2,
    "AttachmentID": 3,
    "UserName": "sample string 4",
    "LastChanged": "2024-05-18T07:33:28.8026822Z",
    "Attachment": {
      "ID": 1,
      "AttachmentName": "sample string 2",
      "AttachmentContent": "QEA=",
      "AttachmentType": "sample string 3",
      "AccountID": 4,
      "UserName": "sample string 5",
      "LastChanged": "2024-05-18T07:33:28.8026822Z"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfWorkRequestAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <WorkRequestAttachment>
    <Attachment>
      <AccountID>4</AccountID>
      <AttachmentContent>QEA=</AttachmentContent>
      <AttachmentName>sample string 2</AttachmentName>
      <AttachmentType>sample string 3</AttachmentType>
      <ID>1</ID>
      <LastChanged>2024-05-18T07:33:28.8026822+00:00</LastChanged>
      <UserName>sample string 5</UserName>
    </Attachment>
    <AttachmentID>3</AttachmentID>
    <ID>1</ID>
    <LastChanged>2024-05-18T07:33:28.8026822+00:00</LastChanged>
    <UserName>sample string 4</UserName>
    <WorkRequestId>2</WorkRequestId>
  </WorkRequestAttachment>
  <WorkRequestAttachment>
    <Attachment>
      <AccountID>4</AccountID>
      <AttachmentContent>QEA=</AttachmentContent>
      <AttachmentName>sample string 2</AttachmentName>
      <AttachmentType>sample string 3</AttachmentType>
      <ID>1</ID>
      <LastChanged>2024-05-18T07:33:28.8026822+00:00</LastChanged>
      <UserName>sample string 5</UserName>
    </Attachment>
    <AttachmentID>3</AttachmentID>
    <ID>1</ID>
    <LastChanged>2024-05-18T07:33:28.8026822+00:00</LastChanged>
    <UserName>sample string 4</UserName>
    <WorkRequestId>2</WorkRequestId>
  </WorkRequestAttachment>
</ArrayOfWorkRequestAttachment>