GET api/Contacts2/GetAttachments?siteCode={siteCode}&userID={userID}&threadCode={threadCode}

Method to Get all the List of Contact attachments associated to the user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteCode

string

Required

userID

integer

Required

threadCode

string

Required

Body Parameters

None.

Response Information

Resource Description

On Success: HttpStatusCode = 200 On Forbidden: HttpStatusCode = 403

Contact2Thread
NameDescriptionTypeAdditional information
ThreadID

integer

None.

ThreadCode

string

None.

Title

string

None.

CommunicationTypeID

integer

None.

CommunicationType

string

None.

OwnerUserName

string

None.

Status

integer

None.

ContactSupportEmailID

integer

None.

ContactType

integer

None.

CreatedDateTime

date

None.

Messages

Collection of Contact2Message

None.

ContactSupport

ContactSupport

None.

Response Formats

application/json, text/json

Sample:
{
  "ThreadID": 1,
  "ThreadCode": "sample string 2",
  "Title": "sample string 3",
  "CommunicationTypeID": 4,
  "CommunicationType": "sample string 5",
  "OwnerUserName": "sample string 6",
  "Status": 7,
  "ContactSupportEmailID": 8,
  "ContactType": 9,
  "CreatedDateTime": "2017-12-15T14:06:59.158513-06:00",
  "Messages": [
    {
      "MessageID": 1,
      "ThreadID": 2,
      "Message": "sample string 3",
      "SpeakerUserID": 4,
      "SpeakerUserName": "sample string 5",
      "SpeakerUserPicture": "sample string 6",
      "SendDateTime": "2017-12-15T14:06:59.158513-06:00",
      "IsResponse": true,
      "IsRead": true,
      "Attachments": [
        {
          "CabinetFileID": 1,
          "FileCategoryID": 2,
          "CreatedUserID": 3,
          "FileKindClass": "A",
          "FileCategoryName": "sample string 5",
          "Title": "sample string 6",
          "FileName": "sample string 7",
          "FilePath": "sample string 8",
          "ThumbnailName": "sample string 9",
          "ThumbnailPath": "sample string 10",
          "FirstComment": "sample string 11",
          "FileUrl": "sample string 12",
          "ThumbNailUrl": "sample string 13",
          "CreatedDateTime": "2017-12-15T14:06:59.158513-06:00",
          "CommentCount": 15,
          "MessageID": 16
        },
        {
          "CabinetFileID": 1,
          "FileCategoryID": 2,
          "CreatedUserID": 3,
          "FileKindClass": "A",
          "FileCategoryName": "sample string 5",
          "Title": "sample string 6",
          "FileName": "sample string 7",
          "FilePath": "sample string 8",
          "ThumbnailName": "sample string 9",
          "ThumbnailPath": "sample string 10",
          "FirstComment": "sample string 11",
          "FileUrl": "sample string 12",
          "ThumbNailUrl": "sample string 13",
          "CreatedDateTime": "2017-12-15T14:06:59.158513-06:00",
          "CommentCount": 15,
          "MessageID": 16
        }
      ]
    },
    {
      "MessageID": 1,
      "ThreadID": 2,
      "Message": "sample string 3",
      "SpeakerUserID": 4,
      "SpeakerUserName": "sample string 5",
      "SpeakerUserPicture": "sample string 6",
      "SendDateTime": "2017-12-15T14:06:59.158513-06:00",
      "IsResponse": true,
      "IsRead": true,
      "Attachments": [
        {
          "CabinetFileID": 1,
          "FileCategoryID": 2,
          "CreatedUserID": 3,
          "FileKindClass": "A",
          "FileCategoryName": "sample string 5",
          "Title": "sample string 6",
          "FileName": "sample string 7",
          "FilePath": "sample string 8",
          "ThumbnailName": "sample string 9",
          "ThumbnailPath": "sample string 10",
          "FirstComment": "sample string 11",
          "FileUrl": "sample string 12",
          "ThumbNailUrl": "sample string 13",
          "CreatedDateTime": "2017-12-15T14:06:59.158513-06:00",
          "CommentCount": 15,
          "MessageID": 16
        },
        {
          "CabinetFileID": 1,
          "FileCategoryID": 2,
          "CreatedUserID": 3,
          "FileKindClass": "A",
          "FileCategoryName": "sample string 5",
          "Title": "sample string 6",
          "FileName": "sample string 7",
          "FilePath": "sample string 8",
          "ThumbnailName": "sample string 9",
          "ThumbnailPath": "sample string 10",
          "FirstComment": "sample string 11",
          "FileUrl": "sample string 12",
          "ThumbNailUrl": "sample string 13",
          "CreatedDateTime": "2017-12-15T14:06:59.158513-06:00",
          "CommentCount": 15,
          "MessageID": 16
        }
      ]
    }
  ],
  "ContactSupport": {
    "PrimaryEmail": "sample string 1",
    "CcEmails": "sample string 2",
    "ContactSupportEmailId": 3,
    "DisplayName": "sample string 4",
    "Subject": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<Contact2Thread xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sysmex.IT.NsGlobal.Models">
  <CommunicationType>sample string 5</CommunicationType>
  <CommunicationTypeID>4</CommunicationTypeID>
  <ContactSupport>
    <CcEmails>sample string 2</CcEmails>
    <ContactSupportEmailId>3</ContactSupportEmailId>
    <DisplayName>sample string 4</DisplayName>
    <PrimaryEmail>sample string 1</PrimaryEmail>
    <Subject>sample string 5</Subject>
  </ContactSupport>
  <ContactSupportEmailID>8</ContactSupportEmailID>
  <ContactType>9</ContactType>
  <CreatedDateTime>2017-12-15T14:06:59.158513-06:00</CreatedDateTime>
  <Messages>
    <Contact2Message>
      <Attachments>
        <CabinetFileDetails>
          <CabinetFileID>1</CabinetFileID>
          <CommentCount>15</CommentCount>
          <CreatedDateTime>2017-12-15T14:06:59.158513-06:00</CreatedDateTime>
          <CreatedUserID>3</CreatedUserID>
          <FileCategoryID>2</FileCategoryID>
          <FileCategoryName>sample string 5</FileCategoryName>
          <FileKindClass>65</FileKindClass>
          <FileName>sample string 7</FileName>
          <FilePath>sample string 8</FilePath>
          <FileUrl>sample string 12</FileUrl>
          <FirstComment>sample string 11</FirstComment>
          <MessageID>16</MessageID>
          <ThumbNailUrl>sample string 13</ThumbNailUrl>
          <ThumbnailName>sample string 9</ThumbnailName>
          <ThumbnailPath>sample string 10</ThumbnailPath>
          <Title>sample string 6</Title>
        </CabinetFileDetails>
        <CabinetFileDetails>
          <CabinetFileID>1</CabinetFileID>
          <CommentCount>15</CommentCount>
          <CreatedDateTime>2017-12-15T14:06:59.158513-06:00</CreatedDateTime>
          <CreatedUserID>3</CreatedUserID>
          <FileCategoryID>2</FileCategoryID>
          <FileCategoryName>sample string 5</FileCategoryName>
          <FileKindClass>65</FileKindClass>
          <FileName>sample string 7</FileName>
          <FilePath>sample string 8</FilePath>
          <FileUrl>sample string 12</FileUrl>
          <FirstComment>sample string 11</FirstComment>
          <MessageID>16</MessageID>
          <ThumbNailUrl>sample string 13</ThumbNailUrl>
          <ThumbnailName>sample string 9</ThumbnailName>
          <ThumbnailPath>sample string 10</ThumbnailPath>
          <Title>sample string 6</Title>
        </CabinetFileDetails>
      </Attachments>
      <IsRead>true</IsRead>
      <IsResponse>true</IsResponse>
      <Message>sample string 3</Message>
      <MessageID>1</MessageID>
      <SendDateTime>2017-12-15T14:06:59.158513-06:00</SendDateTime>
      <SpeakerUserID>4</SpeakerUserID>
      <SpeakerUserName>sample string 5</SpeakerUserName>
      <SpeakerUserPicture>sample string 6</SpeakerUserPicture>
      <ThreadID>2</ThreadID>
    </Contact2Message>
    <Contact2Message>
      <Attachments>
        <CabinetFileDetails>
          <CabinetFileID>1</CabinetFileID>
          <CommentCount>15</CommentCount>
          <CreatedDateTime>2017-12-15T14:06:59.158513-06:00</CreatedDateTime>
          <CreatedUserID>3</CreatedUserID>
          <FileCategoryID>2</FileCategoryID>
          <FileCategoryName>sample string 5</FileCategoryName>
          <FileKindClass>65</FileKindClass>
          <FileName>sample string 7</FileName>
          <FilePath>sample string 8</FilePath>
          <FileUrl>sample string 12</FileUrl>
          <FirstComment>sample string 11</FirstComment>
          <MessageID>16</MessageID>
          <ThumbNailUrl>sample string 13</ThumbNailUrl>
          <ThumbnailName>sample string 9</ThumbnailName>
          <ThumbnailPath>sample string 10</ThumbnailPath>
          <Title>sample string 6</Title>
        </CabinetFileDetails>
        <CabinetFileDetails>
          <CabinetFileID>1</CabinetFileID>
          <CommentCount>15</CommentCount>
          <CreatedDateTime>2017-12-15T14:06:59.158513-06:00</CreatedDateTime>
          <CreatedUserID>3</CreatedUserID>
          <FileCategoryID>2</FileCategoryID>
          <FileCategoryName>sample string 5</FileCategoryName>
          <FileKindClass>65</FileKindClass>
          <FileName>sample string 7</FileName>
          <FilePath>sample string 8</FilePath>
          <FileUrl>sample string 12</FileUrl>
          <FirstComment>sample string 11</FirstComment>
          <MessageID>16</MessageID>
          <ThumbNailUrl>sample string 13</ThumbNailUrl>
          <ThumbnailName>sample string 9</ThumbnailName>
          <ThumbnailPath>sample string 10</ThumbnailPath>
          <Title>sample string 6</Title>
        </CabinetFileDetails>
      </Attachments>
      <IsRead>true</IsRead>
      <IsResponse>true</IsResponse>
      <Message>sample string 3</Message>
      <MessageID>1</MessageID>
      <SendDateTime>2017-12-15T14:06:59.158513-06:00</SendDateTime>
      <SpeakerUserID>4</SpeakerUserID>
      <SpeakerUserName>sample string 5</SpeakerUserName>
      <SpeakerUserPicture>sample string 6</SpeakerUserPicture>
      <ThreadID>2</ThreadID>
    </Contact2Message>
  </Messages>
  <OwnerUserName>sample string 6</OwnerUserName>
  <Status>7</Status>
  <ThreadCode>sample string 2</ThreadCode>
  <ThreadID>1</ThreadID>
  <Title>sample string 3</Title>
</Contact2Thread>