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": "a2e4b4d3-c8d8-4256-badf-54d9292ec4b6",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2021-01-21T23:00:15.3165596+01:00"
  },
  {
    "ID": "a2e4b4d3-c8d8-4256-badf-54d9292ec4b6",
    "TelephoneNumber": "sample string 2",
    "SmsToSend": "sample string 3",
    "DateCreated": "2021-01-21T23:00:15.3165596+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-01-21T23:00:15.3165596+01:00</DateCreated>
    <ID>a2e4b4d3-c8d8-4256-badf-54d9292ec4b6</ID>
    <SmsToSend>sample string 3</SmsToSend>
    <TelephoneNumber>sample string 2</TelephoneNumber>
  </Contact>
  <Contact>
    <DateCreated>2021-01-21T23:00:15.3165596+01:00</DateCreated>
    <ID>a2e4b4d3-c8d8-4256-badf-54d9292ec4b6</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": "a13e0083-5e7a-49ac-adf3-f0dc4d073648",
  "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>a13e0083-5e7a-49ac-adf3-f0dc4d073648</ID>
  <SmsToSend>sample string 3</SmsToSend>
  <TelephoneNumber>sample string 2</TelephoneNumber>
</ContactDTO>