POST
/
catalogues
/
{catalogue_id}
/
audiences
Add a new audience to this catalogue
curl --request POST \
  --url http://localhost:3001/portal-api/catalogues/{catalogue_id}/audiences \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "OrganisationID": 1,
  "TeamID": 1
}'
{
  "ID": 1,
  "OrganisationID": 1,
  "TeamID": 1,
  "CreatedAt": "2023-06-23 21:02",
  "UpdatedAt": "2023-06-23 21:02"
}

Authorizations

Authorization
string
header
required

Path Parameters

catalogue_id
integer
required

UID of a catalogue

Example:

1

Body

application/json
OrganisationID
integer

UID of an organisation

Example:

1

TeamID
integer

UID of a team

Example:

1

Response

OK

ID
integer

UID of this audience

Example:

1

OrganisationID
integer

UID of this audience

Example:

1

TeamID
integer

UID of this audience

Example:

1

CreatedAt
string

Date-time when this audience is created

Example:

"2023-06-23 21:02"

UpdatedAt
string

Date-time when this audience is updated the last time

Example:

"2023-06-23 21:02"