#Update contact

Update a contact.

#Method

PUT

#Path

/contacts/[phone_number]

#Path parameter

NameValueRequired?
phone_numberPhone number starting with the country code with or without leading plus. e.g. +16175551212 or 16175551212Yes

#Body parameters

NameValueData typeRequired?
phone_number_ccPhone number country dial code (e.g. "1")StringNo
nameContact person nameStringNo
extra_fieldsKey value pair object with additional custom fields (e.g. { "email_address": "john@example.com", "id": 987123 })ObjectNo

#Response

#HTTP status codes

CodeRemarks
200Request was successful.
400Validation error or request body was incorrectly formatted.
401Authentication failed. Check apikey header.
404Requested API endpoint not found.
429The rate limit has been reached.
500-511There was a problem processing the request on our server. Try again later.

#Response object

NameValueRemarks
statussuccess or error-
errorsArray of object { msg: [error detail] }Only present when status is error.

#Code sample

curl --location --request PUT 'https://api.sociocs.com/contacts/16175551212' \ --header 'apikey: your_api_key' \ --header 'Content-Type: application/json' \ --data-raw '{ "name": "John Davidson", "phone_number_cc": "1", "extra_fields": { "email_address": john@example.com } }'