Partially updates an audience. Only the fields that are sent are applied; omitted fields keep their value. The audience must belong to the member group and experience in the path and must not be deleted, otherwise 404. If the name changes it must still be unique among the experience's non-deleted audiences; when the audience is already published, the name of its targeting option is updated to the new name (the GUID does not change). If any criteria value actually changes, synced_with_databricks is set to false. Sending values equal to the current ones changes nothing. The request body is limited to 1 MiB. Returns 200 with the audience_id. 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… | |||
Updates an audience. Send only the fields you want to change; omitted fields keep their value. A new name must be unique among the experience's non-deleted audiences. If the audience is already published, the name of its targeting option is updated to match (the GUID does not change). If a criteria value actually changes, synced_with_databricks is set to false. The request body is limited to 1 MiB.
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 |
| audience_name | string | New name, 1 to 256 characters, unique among the experience's non-deleted audiences. | No |
| audience_description | string | New description, up to 1024 characters. An empty string clears it. | No |
| audience_criteria | object | Criteria values to change. Each field is optional. | No |
| audience_criteria.action_count | integer | New action count. Must be greater than 0. | No |
| audience_criteria.action_comparison | string | One of >, >=, ==, <=, <. |
No |
| audience_criteria.action_type | string | One of impression, click, conversion. |
No |
| audience_criteria.lookback_window | integer | New lookback window in days, 1 to 60. | No |
| audience_criteria.product_feed_attr | object | Replaces the attribute filter. An existing filter cannot be removed with this endpoint. | No |
| audience_criteria.product_feed_attr.attribute_id | integer | The attribute ID. Must be an attribute of the member group. | Yes, when product_feed_attr is sent |
| audience_criteria.product_feed_attr.attribute_value | string | The attribute value, 1 to 256 characters. | Yes, when product_feed_attr is sent |
Response
Returns HTTP 200 with {"status": "success", "result": {"audience_id": ...}}.
| Field | Type | Description |
| audience_id | integer | The ID of the updated audience. |

