POST api/Contacts

Request Information

URI Parameters

None.

Body Parameters

Collection of Contact
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

TelephoneNumber

string

None.

SmsToSend

string

None.

DateCreated

date

Data type: Date

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": "e799cf87-4517-4620-8169-db5b105a88c9",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2020-10-20T13:32:13.5664656+01:00"
  },
  {
    "ID": "e799cf87-4517-4620-8169-db5b105a88c9",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2020-10-20T13:32:13.5664656+01:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsTAAGApi.Models">
  <Contact>
    <DateCreated>2020-10-20T13:32:13.5664656+01:00</DateCreated>
    <ID>e799cf87-4517-4620-8169-db5b105a88c9</ID>
    <SmsToSend>sample string 3</SmsToSend>
    <TelephoneNumber>sample string 2</TelephoneNumber>
  </Contact>
  <Contact>
    <DateCreated>2020-10-20T13:32:13.5664656+01:00</DateCreated>
    <ID>e799cf87-4517-4620-8169-db5b105a88c9</ID>
    <SmsToSend>sample string 3</SmsToSend>
    <TelephoneNumber>sample string 2</TelephoneNumber>
  </Contact>
</ArrayOfContact>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ContactDTO
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

TelephoneNumber

string

None.

SmsToSend

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": "fd10fc25-4730-467a-8fc3-affd434d05bc",
  "TelephoneNumber": "sample string 2",
  "SmsToSend": "sample string 3"
}

application/xml, text/xml

Sample:
<ContactDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsTAAGApi.Models">
  <ID>fd10fc25-4730-467a-8fc3-affd434d05bc</ID>
  <SmsToSend>sample string 3</SmsToSend>
  <TelephoneNumber>sample string 2</TelephoneNumber>
</ContactDTO>