POST api/Messages/Outbound

Request Information

URI Parameters

None.

Body Parameters

SMSMessages
NameDescriptionTypeAdditional information
MessageID

integer

None.

ContactID

string

None.

InternalID

string

None.

ContactType

string

None.

Message

string

None.

IsProcessed

boolean

None.

IsInbound

boolean

None.

FromNumber

string

None.

ToNumber

string

None.

FromName

string

None.

ToName

string

None.

MediaContentType

string

None.

MediaUrl

string

None.

EventType

string

None.

MessageStatus

string

None.

MessageSid

string

None.

SMSStatus

string

None.

SmsSid

string

None.

DateCreated

date

None.

DateUpdated

date

None.

Request Formats

application/json, text/json

Sample:
{
  "MessageID": 1,
  "ContactID": "sample string 2",
  "InternalID": "sample string 3",
  "ContactType": "sample string 4",
  "Message": "sample string 5",
  "IsProcessed": true,
  "IsInbound": true,
  "FromNumber": "sample string 7",
  "ToNumber": "sample string 8",
  "FromName": "sample string 9",
  "ToName": "sample string 10",
  "MediaContentType": "sample string 11",
  "MediaUrl": "sample string 12",
  "EventType": "sample string 13",
  "MessageStatus": "sample string 14",
  "MessageSid": "sample string 15",
  "SMSStatus": "sample string 16",
  "SmsSid": "sample string 17",
  "DateCreated": "2019-10-22T22:11:15.8293469+00:00",
  "DateUpdated": "2019-10-22T22:11:15.8293469+00:00"
}

application/xml, text/xml

Sample:
<SMSMessages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GaleMessaging.Models">
  <ContactID>sample string 2</ContactID>
  <ContactType>sample string 4</ContactType>
  <DateCreated>2019-10-22T22:11:15.8293469+00:00</DateCreated>
  <DateUpdated>2019-10-22T22:11:15.8293469+00:00</DateUpdated>
  <EventType>sample string 13</EventType>
  <FromName>sample string 9</FromName>
  <FromNumber>sample string 7</FromNumber>
  <InternalID>sample string 3</InternalID>
  <IsInbound>true</IsInbound>
  <IsProcessed>true</IsProcessed>
  <MediaContentType>sample string 11</MediaContentType>
  <MediaUrl>sample string 12</MediaUrl>
  <Message>sample string 5</Message>
  <MessageID>1</MessageID>
  <MessageSid>sample string 15</MessageSid>
  <MessageStatus>sample string 14</MessageStatus>
  <SMSStatus>sample string 16</SMSStatus>
  <SmsSid>sample string 17</SmsSid>
  <ToName>sample string 10</ToName>
  <ToNumber>sample string 8</ToNumber>
</SMSMessages>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SMSMessages'.

Response Information

Resource Description

None.