post https://platform.{env}.simpplr.com/v1/identity/audience
This API allows you to create a new Audience for a tenant. Example request body:
when listOfConditions selected
{
"name": "Engineers",
"type": "conditions",
"listOfPeople": [], // this should be set to empty array
"listOfConditions": [
{
"name": "department",
"label": "Department",
"values": [
{
"id": "Engineering",
"name": "Engineering", // required in values
}
]
}
]
}
when listOfPeople selected {
"name": "Engineers",
"type": "people",
"listOfPeople": [] ,// array of user ids
"listOfConditions": [] // this should be set to empty array
} ```