Update a contact
This method allows you to update some contacts of one of your list.
PUT
/list/contact/:id
Body Parameters
destination
required
|
The contact's number |
info1 | Information 1 |
info2 | Information 2 |
info3 | Information 3 |
info4 | Information 4 |
Examples
PUT /list/contact/5a0331bffc5886074551ce97 HTTP/1.1
Host: api.smsup.ch
Authorization: Bearer your.token
Accept: application/json
{
"destination": "41781234567",
"info1": "Martin",
"info2": "T",
"info3": "T Corp",
"info4": ""
}
PUT /list HTTP/1.1
Host: api.smsup.ch
Authorization: Bearer your.token
Accept: application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<destination>41781234567</destination>
<info1>Martin</info1>
<info2>T</info2>
<info3>T CORP</info3>
<info4> </info4>
Result Format
{
"status": 1,
"message": "OK"
}
<?xml version="1.0" encoding="UTF-8" ?>
<response>
<status>1</status>
<message>OK</message>
</response>