Kontakty i grupy
Zmień kontakt
Częściowa aktualizacja: podane pola nadpisują, null lub "" czyści pole, pominięte zostają. Zmiana msisdn na numer innego kontaktu = 409. groups zastępuje przypisania. Wymaga zakresu manage.
patch/v1/contacts/{id}
Request
- Base URL: https://api.przypominamy.com
- URL: https://api.przypominamy.com/v1/contacts/{id}
- Auth: HTTP bearer
Path parameters
idstring required
Request body
Example request
{
"msisdn": "+48600100200",
"first_name": "Anna",
"last_name": "Nowak",
"fields": {
"wizyta": "10.09 14:00"
},
"groups": [
"VIP"
]
}Response
Zaktualizowany kontakt
Example response
{
"id": "ct_8fK2mQpL0aXz4Wv1",
"msisdn": "+48600100200",
"first_name": "Anna",
"last_name": "Nowak",
"fields": {
"wizyta": "10.09 14:00"
},
"groups": [
{
"id": "gr_Zq7Lk2Pm9sT1",
"name": "VIP"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.