Skip to main content
PATCH
/
contacts
/
{contactId}
Update a contact by ID
curl --request PATCH \
  --url https://messenger-public-api.cogfy.com/contacts/{contactId} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "[email protected]",
  "phone": "<string>",
  "occupation": "<string>",
  "gender": "<string>",
  "birthdate": "2023-12-25",
  "age": 123,
  "notes": "<string>",
  "customProperties": {
    "Favorite Color": "Blue"
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

api-key
string
header
required

Path Parameters

contactId
string<uuid>
required

Body

application/json
firstName
string
lastName
string
email
string<email>
phone
string
occupation
string
gender
string
birthdate
string<date>
age
integer
notes
string
customProperties
object

Custom properties associated with the contact

Example:
{ "Favorite Color": "Blue" }

Response

Contact updated successfully

id
string<uuid>