PUT /api/v2/buyer/advertisers/{advertiserId}/test-cohorts/{cohortId}
Updates an existing test cohort. All body fields are optional — send only what you want to change; omitted fields keep their current values.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
advertiserId | string | Yes | Path parameter — the owning advertiser |
cohortId | string | Yes | Path parameter — the cohort ID |
name | string | No | Cohort label (max 255) |
description | string | No | Free-text description (max 1000) |
cohortType | string | No | Free-form classification |
role | enum | No | TREATMENT, CONTROL, OBSERVATION |
definition | object | No | Targeting definition. type is required; additional fields vary by type |
estimatedSize | integer | No | Size estimate for power analysis |
Response
Errors
400 VALIDATION_ERROR— invalidroleor adefinitionmissing itstype.404 NOT_FOUND—cohortId(oradvertiserId) does not exist or is not visible to the authenticated customer.
Related
Measurement tasks
All measurement operations
Measurement overview
Pipeline, belief state, and concepts
Get test cohort
Read the current cohort