Update Audience
PUT/audiences/:id
Update an existing audience list
Updates the membership of an existing Audience by adding new customers or removing existing ones.
Use this endpoint to manage and maintain up-to-date customer's lists, ensuring your audience data stays accurate and organized.
Updates the membership of an existing Audience list:
- Use the
assignMembersarray to add new customers (email addresses), with optional profile attributes such asname,tags,location, andpurchase history. - Use the
unAssignMembersarray to remove customers by their email addresses.
This endpoint allows you to efficiently maintain and manage your Audience data, keeping customers lists accurate and up to date.
Workflows:
- If a workflow is associated with the contact list, adding new members will automatically trigger that workflow for the newly added contacts.
Request
Path Parameters
id uuidrequired
ID of the Audience to update
- application/json
Body
required
- Array [
- ]
assignMembers object[]
Customers to add in Audience
email stringrequired
firstName string
lastName string
source string
birthday string
tags string[]
currency string
country string
province string
city string
address1 string
address2 string
phone string
postalCode string
company string
lastPurchaseOrder string
lastPurchasePrice string
latestOrderId string
unAssignMembers string[]
Email of the customers to be removed
Responses
- 204
- 400
- 401
- 405
Successful operation
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "Some error message"
}
API key is missing or invalid
Method Not Allowed
Loading...