PUT
/
v1
/
contacts
curl --request PUT \
  --url https://api.mailsparky.com/v1/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "id": "<string>",
  "email": "<string>",
  "subscribed": true,
  "data": {}
}'

Body

Either the id or email is required.

id
string

The ID of the contact you want to update

email
string

The email of the contact you want to update

subscribed
boolean

Whether the contact is subscribed or not

data
object

The metadata to update with the contact

Headers

Content-Type
string
required

application/json