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": "12377bb0-323c-411e-8f8d-e45fd6eba885",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2021-03-03T16:54:22.1299634+01:00"
  },
  {
    "ID": "12377bb0-323c-411e-8f8d-e45fd6eba885",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2021-03-03T16:54:22.1299634+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-03-03T16:54:22.1299634+01:00</DateCreated>
    <ID>12377bb0-323c-411e-8f8d-e45fd6eba885</ID>
    <SmsToSend>sample string 3</SmsToSend>
    <TelephoneNumber>sample string 2</TelephoneNumber>
  </Contact>
  <Contact>
    <DateCreated>2021-03-03T16:54:22.1299634+01:00</DateCreated>
    <ID>12377bb0-323c-411e-8f8d-e45fd6eba885</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": "c3b399aa-e017-4bad-b193-069d477458df",
  "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>c3b399aa-e017-4bad-b193-069d477458df</ID>
  <SmsToSend>sample string 3</SmsToSend>
  <TelephoneNumber>sample string 2</TelephoneNumber>
</ContactDTO>