Skip to main content
POST
/
audiences
/
bulk-add
Create multiple audiences
curl --request POST \
  --url https://your_a2_service/audiences/bulk-add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "id": "<string>",
    "alt_id": {},
    "created_at": "2023-11-07T05:31:56Z",
    "id_type": "account_id",
    "properties": {},
    "updated_at": "2023-11-07T05:31:56Z"
  }
]
'
{
  "detail": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.aiderx.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
id
string
required
alt_id
Alt Id · object

Alternate identifier for the audience

created_at
string<date-time> | null

The date and time the entity was created.

id_type
string | null
default:account_id

The type of the identifier

properties
Properties · object

Properties for the audience

The key is AudienceAttribute.code, and the value can be a list of AudienceAttributeValue.value
updated_at
string<date-time> | null

The date and time the entity was last updated.

Response

Successful Response