Updates an existing contact. You only need to supply the unique uid of contact and contact group uid that was returned upon creation.
API Endpoint #
https://app.text.lk/api/v3/contacts/{group_id}/update/{uid}
HTTPParameters #
Example request #
curl -X PATCH https://app.text.lk/api/v3/contacts/{group_id}/update/{uid} \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"PHONE":"8801721970168",
"FIRST_NAME":"Jhon",
"LAST_NAME":"Doe",
}'
HTTPReturns #
Returns a contact object if the request is successful.
{
"status": "success",
"data": "contacts data with all details",
}
HTTPIf the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
HTTP