Upsert a Segment
A 3-step recipe with Adobe Analytics. We can help you get access.
Recipe · 3 steps
Upsert a Segment
with Adobe Analytics · Customer Segmentation Management
Works with AI assistants
Update a segment when it already exists, otherwise create it.
- List the company segments filtered to the candidate ID to determine whether the segment already exists.
- Update the matched segment with the supplied name and definition.
- Create a new segment when no existing segment matched the candidate ID.
What you'll need to have ready
- accessToken: Adobe IMS OAuth 2.0 access token (sent as a Bearer token).
- apiKey: Adobe Developer Console API key (x-api-key header).
- rsid: The report suite ID the segment is based on.
- candidateSegmentId: The segment ID to look for before deciding to update or create.
- segmentName: Display name for the segment.
- segmentDescription: Description of the segment's purpose.
- segmentDefinition: The segment rule definition in Analytics query format.
For your developer
Arazzo workflow adobe-analytics:upsert-segment, 3 operations: listSegments → updateSegment → createSegment. Specs on APIs.io.