PUT
/
audiences
/
{id}
/
contacts
/
{contactId}
curl --request PUT \
  --url https://api.amisend.com/audiences/{id}/contacts/{contactId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "user@example.com",
  "name": "John Doe",
  "status": "subscribed"
}'
{
  "_id": "<string>",
  "name": "<string>",
  "contacts": [
    "<string>"
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the audience

contactId
string
required

ID of the contact

Body

application/json

Response

201
application/json

Contact updated in audience

The response is of type object.