Einen Kontakt bearbeiten
Mit dieser Methode können Sie die Daten eines Kontakts in einer Ihrer Listen aktualisieren.
PUT
/list/contact/:id
Body-Parameter
destination
notwendig
|
Kontaktnummer |
info1 | Information 1 |
info2 | Information 2 |
info3 | Information 3 |
info4 | Information 4 |
Beispiele
PUT /list/contact/5a0331bffc5886074551ce97 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
{
"destination": "33612345678",
"info1": "Martin",
"info2": "T",
"info3": "T Corp",
"info4": ""
}
PUT /list HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<destination>33612345678</destination>
<info1>Martin</info1>
<info2>T</info2>
<info3>T CORP</info3>
<info4> </info4>
Ergebnisformat
{
"status": 1,
"message": "OK"
}
<?xml version="1.0" encoding="UTF-8" ?>
<response>
<status>1</status>
<message>OK</message>
</response>