Publishes an audience so it can be targeted. The experience and audience must belong to the member group and experience in the path, otherwise 404. An audience that is already published cannot be published again. Publishing writes to Koddi's own targeting configuration for the experience: it finds the experience's Audience targeting dimension (parameter name user_segments) or creates it (text match type, Exact targeting type), then adds a client-level option to it whose value is the audience GUID and whose display name is the audience name. The audience is then saved with published true, the new targeting dimension and option IDs, and status pending. The code behind this endpoint sends nothing to an external system. Audience size and the final status (inactive, pending or active) are written back later when a Databricks job result message is received. Takes no request body and returns 200 with an empty body. Requires the audience_builder_management permission (write). The caller's own member group must match memberGroupId unless the caller belongs to the Koddi member group (id 1), otherwise 403. Granted to Super Admin, Internal Admin and Client Admin by the migration that created the permission. Only available when the is-audience-builder-enabled feature flag is on for the caller; otherwise 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Publishes an audience so it can be targeted. Koddi finds or creates the experience's Audience targeting dimension (parameter name user_segments) and adds an option to it whose value is the audience GUID and whose name is the audience name. The audience is then marked published with the new targeting dimension and option IDs and the status pending. An audience that is already published cannot be published again.
This endpoint only changes Koddi's own targeting configuration and the audience record; the code behind it sends nothing to an external system. Audience size and the final status are written back later when a Databricks job result is received.
Callers need the audience builder permission (write), which the Super Admin, Internal Admin and Client Admin roles have. The caller's member group must match memberGroupId unless the caller belongs to the Koddi member group. The endpoint is only available when the audience builder feature is enabled for the caller.
Inputs
| Field | Type | Description | Required |
| memberGroupId | integer (path) | The member group id (provided by Koddi) | Yes |
| experienceId | integer (path) | The experience ID | Yes |
| audienceId | integer (path) | The audience ID | Yes |
Response
Returns HTTP 200 with an empty body.
200OK. The audience was published. Empty body.

