docs
  1. Admin Api
  2. Resources
  3. Promotions
  4. Audiences
  5. Create Audiences

Create audiences

Create a new audience

Request body

required
ParameterDetails
id
  • readonly
  • MinLength: 24
  • MaxLength: 24
string
Example:
645e0c241a93369ff53f26e0
name
  • required
  • MinLength: 3
string
Example:
VIP customers
description
  • required
  • MinLength: 3
string
Example:
German VIP Customers from Hamburg only
companyIds
  • required
integer
Example:
100
customerIds
  • required
integer
Example:
345,456,567
createdAt
  • readonly
  • MinLength: 1
string
Example:
2023-05-10T10:00:00.000Z
updatedAt
  • readonly
  • MinLength: 1
string
Example:
2023-05-10T10:00:00.000Z

Responses

201
Audience was successfully created.
application/json
Success
id
string
Example:
645e0c241a93369ff53f26e0
namerequired
string
Example:
VIP customers
descriptionrequired
string
Example:
German VIP Customers from Hamburg only
companyIdsrequired
Array of integer
customerIdsrequired
Array of integer
createdAt
string
Example:
2023-05-10T10:00:00.000Z
updatedAt
string
Example:
2023-05-10T10:00:00.000Z
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
POST/promotions/audiences

Request samples

Response samples

201
Brand:
Content type: application/json
Provide Feedback