Update an existing audience

Modifies the configuration of an existing audience. This can include changing its name, type, status (active/archived), or the rules defining its criteria.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

ID of the account that owns the retrieved/saved data

integer
required

ID of the project into which the audience is stored

integer
required

ID of the audience to be updated

Body Params
string
length ≤ 500

An optional, more detailed explanation of the audience's purpose or criteria, aiding in identification and management.

string
enum

The status of an audience:

  • active: The audience is currently active and can be used for targeting experiences.
  • archived: The audience is no longer active and cannot be used for new experiences, but its definition and past usage data are preserved. Archived audiences can often be cloned. Knowledge Base: "Benefits of Archiving Unused Goals, Locations, and Audiences."
Allowed:
string
length ≤ 100

A user-defined, friendly name for the audience (e.g., "New Visitors from USA", "Repeat Purchasers - Mobile"). This name appears in the Convert UI when selecting audiences for experiences.

boolean

If true, this audience will be automatically pre-selected when creating new experiences within the project. Useful for commonly targeted segments.

string
enum

Defines the behavior and persistence of an audience that does not use URL-based conditions in its rules.

  • permanent: Once a visitor matches the audience criteria, they are permanently considered part of this audience for future sessions and evaluations, even if their characteristics change later. The matching is checked only at the initial bucketing time.
  • transient: A visitor must match the audience criteria upon each evaluation (e.g., on every page load or when an experiment is rechecked) to be included. If conditions are no longer met, the visitor is no longer part of the audience for that specific evaluation. For Full Stack projects, only transient and segmentation (if applicable without URL rules) are valid.
Allowed:
rules
object | null

Similar to RuleObject, but the individual RuleElementNoUrl conditions within OR_WHEN arrays cannot include URL-based matching types. Used for 'permanent' or 'transient' audiences where URL context is not persistently evaluated or relevant for the audience type.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json