Skip to main content
PATCH
/
automation
/
contacts
/
{email}
curl --request PATCH \
  --url https://api.maildiver.com/v1/automation/contacts/{email} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "properties": {
    "first_name": "John",
    "last_name": "Doe",
    "plan": "enterprise"
  }
}
'
{
"message": "Contact metadata updated successfully",
"email": "[email protected]",
"updated_properties": [
"first_name",
"last_name",
"plan",
"company"
]
}

Authorizations

Authorization
string
header
required

API key with format "Bearer {your-api-key}"

Path Parameters

email
string
required

Contact's email address

Body

application/json
properties
object

Contact properties to merge (key-value pairs, set to null to delete)

Example:
{
"first_name": "John",
"plan": "enterprise"
}

Response

Contact successfully updated