POST api/Contacts

Method to Add Contact

Request Information

URI Parameters

None.

Body Parameters

Contact
NameDescriptionTypeAdditional information
ContactID

integer

None.

Title

string

None.

Content

string

None.

IsRead

boolean

None.

CommunicationTypeID

integer

None.

CommunicationType

string

None.

CreatedDateTime

date

None.

CreatedUserEmail

string

None.

From

string

None.

attachments

Collection of CabinetFileDetails

None.

HasAttachments

boolean

None.

ContactType

integer

None.

Unread

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactID": 1,
  "Title": "sample string 2",
  "Content": "sample string 3",
  "IsRead": true,
  "CommunicationTypeID": 5,
  "CommunicationType": "sample string 6",
  "CreatedDateTime": "2017-12-14T03:59:39.0856101-06:00",
  "CreatedUserEmail": "sample string 8",
  "From": "sample string 9",
  "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-14T03:59:39.0856101-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-14T03:59:39.0856101-06:00",
      "CommentCount": 15,
      "MessageID": 16
    }
  ],
  "HasAttachments": true,
  "ContactType": 11,
  "Unread": 12
}

application/xml, text/xml

Sample:
<Contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sysmex.IT.NsGlobal.Models">
  <CommunicationType>sample string 6</CommunicationType>
  <CommunicationTypeID>5</CommunicationTypeID>
  <ContactID>1</ContactID>
  <ContactType>11</ContactType>
  <Content>sample string 3</Content>
  <CreatedDateTime>2017-12-14T03:59:39.0856101-06:00</CreatedDateTime>
  <CreatedUserEmail>sample string 8</CreatedUserEmail>
  <From>sample string 9</From>
  <HasAttachments>true</HasAttachments>
  <IsRead>true</IsRead>
  <Title>sample string 2</Title>
  <Unread>12</Unread>
  <attachments>
    <CabinetFileDetails>
      <CabinetFileID>1</CabinetFileID>
      <CommentCount>15</CommentCount>
      <CreatedDateTime>2017-12-14T03:59:39.0856101-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-14T03:59:39.0856101-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>
</Contact>

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

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>