POST api/Contacts
Request Information
URI Parameters
None.
Body Parameters
Collection of Contact| Name | Description | Type | Additional 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": "3ad05112-40ae-427a-b396-ec8bc9dd6d90",
"TelephoneNumber": "sample string 2",
"SmsToSend": "sample string 3",
"DateCreated": "2025-11-30T22:04:32.1341605+01:00"
},
{
"ID": "3ad05112-40ae-427a-b396-ec8bc9dd6d90",
"TelephoneNumber": "sample string 2",
"SmsToSend": "sample string 3",
"DateCreated": "2025-11-30T22:04:32.1341605+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>2025-11-30T22:04:32.1341605+01:00</DateCreated>
<ID>3ad05112-40ae-427a-b396-ec8bc9dd6d90</ID>
<SmsToSend>sample string 3</SmsToSend>
<TelephoneNumber>sample string 2</TelephoneNumber>
</Contact>
<Contact>
<DateCreated>2025-11-30T22:04:32.1341605+01:00</DateCreated>
<ID>3ad05112-40ae-427a-b396-ec8bc9dd6d90</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| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | globally unique identifier |
None. |
|
| TelephoneNumber | string |
None. |
|
| SmsToSend | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": "6d5642bb-ed7b-48d2-9499-441f54e50831",
"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>6d5642bb-ed7b-48d2-9499-441f54e50831</ID> <SmsToSend>sample string 3</SmsToSend> <TelephoneNumber>sample string 2</TelephoneNumber> </ContactDTO>