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": "jsmith@example.com",
  "phone": "<string>",
  "occupation": "<string>",
  "gender": "<string>",
  "birthdate": "2023-12-25",
  "age": 123,
  "notes": "<string>"
}'
{
  "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

Response

id
string<uuid>