curl --request PATCH \
--url https://api.selfmailkit.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

Response

200
application/json

Contact successfully updated

The response is of type any.