Skip to main content
curl --request PATCH \
--url https://api.maildiver.com/v1/audiences/{audienceId}/contacts/{contactId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "suppressionlist+9@simulator.amazonses.com",
"first_name": "John",
"last_name": "Doe",
"is_subscribed": true
}'
{
"message": "Contact updated"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

audienceId
string
required

Unique identifier of the audience

contactId
string
required

Unique identifier of the contact

Body

application/json
email
string

Contact's email address

Example:

"suppressionlist+9@simulator.amazonses.com"

first_name
string

Contact's first name (1-100 characters)

Required string length: 1 - 100
Example:

"John"

last_name
string

Contact's last name (1-100 characters)

Required string length: 1 - 100
Example:

"Doe"

is_subscribed
boolean

Whether the contact is subscribed to emails

Example:

true

Response

Contact successfully updated

The response is of type any.

I