POST api/Contacts2/AddMessage

Method to Add Contact Message

Request Information

URI Parameters

None.

Body Parameters

Contact2Message
NameDescriptionTypeAdditional information
MessageID

integer

None.

ThreadID

integer

None.

Message

string

None.

SpeakerUserID

integer

None.

SpeakerUserName

string

None.

SpeakerUserPicture

string

None.

SendDateTime

date

None.

IsResponse

boolean

None.

IsRead

boolean

None.

Attachments

Collection of CabinetFileDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "MessageID": 1,
  "ThreadID": 2,
  "Message": "sample string 3",
  "SpeakerUserID": 4,
  "SpeakerUserName": "sample string 5",
  "SpeakerUserPicture": "sample string 6",
  "SendDateTime": "2017-12-15T14:06:59.924111-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.924111-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.924111-06:00",
      "CommentCount": 15,
      "MessageID": 16
    }
  ]
}

application/xml, text/xml

Sample:
<Contact2Message xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sysmex.IT.NsGlobal.Models">
  <Attachments>
    <CabinetFileDetails>
      <CabinetFileID>1</CabinetFileID>
      <CommentCount>15</CommentCount>
      <CreatedDateTime>2017-12-15T14:06:59.924111-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.924111-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.924111-06:00</SendDateTime>
  <SpeakerUserID>4</SpeakerUserID>
  <SpeakerUserName>sample string 5</SpeakerUserName>
  <SpeakerUserPicture>sample string 6</SpeakerUserPicture>
  <ThreadID>2</ThreadID>
</Contact2Message>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

On Success: HttpStatusCode = 200 On Authorization Error: HttpStatusCode = 401 On Forbidden: HttpStatusCode = 403

None.