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": "004aa366-8157-4b05-8423-15c547b6c985",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2021-09-19T00:54:17.292248+01:00"
  },
  {
    "ID": "004aa366-8157-4b05-8423-15c547b6c985",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2021-09-19T00:54:17.292248+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>2021-09-19T00:54:17.292248+01:00</DateCreated>
    <ID>004aa366-8157-4b05-8423-15c547b6c985</ID>
    <SmsToSend>sample string 3</SmsToSend>
    <TelephoneNumber>sample string 2</TelephoneNumber>
  </Contact>
  <Contact>
    <DateCreated>2021-09-19T00:54:17.292248+01:00</DateCreated>
    <ID>004aa366-8157-4b05-8423-15c547b6c985</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": "35c7f757-d8b6-4bde-a514-57deec3608a1",
  "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>35c7f757-d8b6-4bde-a514-57deec3608a1</ID>
  <SmsToSend>sample string 3</SmsToSend>
  <TelephoneNumber>sample string 2</TelephoneNumber>
</ContactDTO>