Userpoint Segment
Operations related to UserPoint Segments, the membership records indicating a UserPoint belongs to an audience segment. Each UserSegment contains segment_id, creation date, and optional expiration (TTL):
User Query - OTQL-based rules
User List - Static imports
User Lookalike - ML-generated expansion of seed segments
User Activation - Campaign interaction tracking
Edge Segment - Client-side evaluation in browser
Scenario-generated - Automation workflow outputs
UserSegments persist independently from segment counting and enable activation through feeds to external platforms.
Relevant documentation:
Upsert user segment
User identifier in one of the following format : - a UUID (a.k.a userpoint id) - user_point_id=xxx where xxx is a UUID - compartment_id=xxx,user_account_id=yyy - user_agent_id=xxx - email_hash=xxx
^([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|user_point_id=[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|compartment_id=\d+,user_account_id=\S+|user_account_id=\S+(,compartment_id=\d+)?|user_agent_id=\S+|email_hash=\S+)$0Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/user_points/{user_identifier}/user_segments/audience_segment_id={segment_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"expiration": 0,
"data_bag": "text"
}{
"status": "ok",
"data": {
"data_bag": "text",
"expiration_ts": 0,
"segment_id": "text",
"last_modified_ts": 0,
"creation_ts": 0
}
}Delete user segment
User identifier in one of the following format : - a UUID (a.k.a userpoint id) - user_point_id=xxx where xxx is a UUID - compartment_id=xxx,user_account_id=yyy - user_agent_id=xxx - email_hash=xxx
^([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|user_point_id=[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}|compartment_id=\d+,user_account_id=\S+|user_account_id=\S+(,compartment_id=\d+)?|user_agent_id=\S+|email_hash=\S+)$Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/user_points/{user_identifier}/user_segments/audience_segment_id={segment_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Trigger external user segment feed events
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/external_user_segment_feed_events HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 568
{
"type": "external_upsert_event",
"expiration_ts": 0,
"session_id": "text",
"profiles": [
"text"
],
"identifiers": [
{
"technical_identifiers": [
{
"expiration_ts": 0,
"creation_ts": 0,
"last_activity_ts": 0,
"user_agent_id": {},
"registry_id": "text",
"type": "INSTALLATION_ID"
}
],
"expiration_ts": 0,
"creation_ts": 0,
"device": {
"carrier": "text",
"initial_ts": 0,
"browser_version": "text",
"model": "text",
"form_factor": "OTHER",
"os_family": "OTHER",
"brand": "text",
"raw_value": "text",
"browser_family": "OTHER",
"os_version": "text"
},
"id": "text",
"last_activity_ts": 0
}
],
"datamart_id": "text",
"segment_id": "text"
}{
"status": "ok",
"data": {
"type": "external_upsert_event",
"expiration_ts": 0,
"session_id": "text",
"profiles": [
"text"
],
"identifiers": [
{
"technical_identifiers": [
{
"expiration_ts": 0,
"creation_ts": 0,
"last_activity_ts": 0,
"user_agent_id": {},
"registry_id": "text",
"type": "INSTALLATION_ID"
}
],
"expiration_ts": 0,
"creation_ts": 0,
"device": {
"carrier": "text",
"initial_ts": 0,
"browser_version": "text",
"model": "text",
"form_factor": "OTHER",
"os_family": "OTHER",
"brand": "text",
"raw_value": "text",
"browser_family": "OTHER",
"os_version": "text"
},
"id": "text",
"last_activity_ts": 0
}
],
"datamart_id": "text",
"segment_id": "text"
}
}Last updated
Was this helpful?