Refresh a segment against the latest data
Re-derives a single segment from the latest identity graph data. This is the segment-native counterpart of POST /v1/audiences/{id}/refresh — it updates ONLY this segment. Referencing audiences are never touched; their IDs are returned in affected_audiences so you can recount or refresh them as needed (use the audience-level refresh for a whole-composition refresh).
Per-subtype behavior:
-
filter — Synchronous. Bumps current_version and appends a version history entry (sharing the same counter as PATCH filter edits), clears record_count, resets the 90-day TTL, and returns status: active. If nothing would change (already active, count already null, TTL already fresh today) and force is not set, the call is a no-op returning the current segment with refreshed: false.
-
matched — Returns a fresh presigned upload_url (24 h expiry) — or upload_urls (an array, one per shard) when shard_count > 1, in which case upload_url is absent. The new upload may be raw or gzip. With hitl unset/false (default): targets the segment's existing upload path directly, resets mapping state (column_mappings, mapping_confirmed) and counts, and returns status: pending — re-upload your identity list and identity resolution runs automatically once every declared shard has been uploaded. With hitl: true: the URL(s) instead target a staging location and the segment's status/mapping state is left untouched until you confirm — see the hitl field description below. Matched duplicates that share another segment's data are rejected with 409 SHARED_SOURCE_DATA — refresh the source segment instead. A saved integration-match segment owns its own lifecycle and remains refreshable.
-
similarity — Re-launches the lookalike generation workflow with the stored seed parameters. Returns status: pending; the segment's workflow_run_id is updated to the new run. Poll GET /v1/workflows/{workflow_run_id} until completion.
-
propensity — Re-launches the scoring model workflow using the stored positive_class_segment_id. Returns status: pending plus the new workflow_run_id. 422 MISSING_POSITIVE_CLASS_ID for legacy segments that predate positive_class_segment_id storage — those must be recreated.
Archived segments are rejected with 409 SEGMENT_ARCHIVED — restore first via PATCH /v1/segments/{id} with status: active. Requires 'creator' scope.
Request
- Base URL: https://api.infiniteaudience.ai
- URL: https://api.infiniteaudience.ai/v1/segments/{id}/refresh
- Auth: HTTP bearer
Path parameters
Segment document ID.
Request body
Response
Segment refreshed (or no-op — inspect refreshed). Shape varies by subtype: matched adds upload_url/upload_expires_at (or upload_urls when shard_count > 1); similarity/propensity carry the new workflow_run_id. See next_step for a machine-readable hint.
Changes
No recorded changes to this operation across all 1 revision of this API.