For the complete documentation index, see llms.txt. This page is also available as Markdown.

User Defined Segment Metrics

Operations related to Audience Segment Identifiers Metrics that define identifier-based measurements on each segment. Track specific identifier type distributions such as number of hashed emails, user device points, user accounts per compartment, cookies, and mobile advertising IDs, providing detailed visibility into segment addressability across different activation channels.

Search for audience segment identifiers metrics

get
/datamarts/{datamart_id}/audience_segment_identifiers_metrics
Path parameters
datamart_idstringRequired
Query parameters
statusstring · enumOptionalPossible values:
archivedbooleanOptional

Retrieve archived audience segment identifiers metrics

order_bystring[]Optional
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Maximum number of items that may be returned by the query

Responses
200

Success !

application/json
max_resultsintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
countintegerRequired
first_resultintegerRequired
get/datamarts/{datamart_id}/audience_segment_identifiers_metrics
GET /v1/datamarts/{datamart_id}/audience_segment_identifiers_metrics HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {
      "order_index": 0,
      "last_modified_ts": 0,
      "created_ts": 0,
      "created_by": "text",
      "last_modified_by": "text",
      "metric_definition": {
        "type": "USER_DEVICE_POINT"
      },
      "archived": false,
      "status": "INACTIVE",
      "id": "text",
      "datamart_id": "text",
      "display": {
        "name": "text",
        "description": "text",
        "icon": "text"
      }
    }
  ],
  "max_results": 1,
  "total": 1,
  "status": "ok",
  "count": 1,
  "first_result": 1
}

Create an audience segment identifiers metric

post
/datamarts/{datamart_id}/audience_segment_identifiers_metrics
Path parameters
datamart_idstringRequired
Body
order_indexinteger · int32RequiredDefault: 0
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
created_tsinteger · int64Read-onlyRequiredDefault: 0
created_bystringRead-onlyRequired
last_modified_bystringRead-onlyOptional
archivedbooleanRequiredDefault: false
statusstring · enumRequiredPossible values:
idstringRead-onlyRequired
datamart_idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/audience_segment_identifiers_metrics
POST /v1/datamarts/{datamart_id}/audience_segment_identifiers_metrics HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 164

{
  "order_index": 0,
  "metric_definition": {
    "type": "USER_DEVICE_POINT"
  },
  "archived": false,
  "status": "INACTIVE",
  "display": {
    "name": "text",
    "description": "text",
    "icon": "text"
  }
}
{
  "status": "ok",
  "data": {
    "order_index": 0,
    "last_modified_ts": 0,
    "created_ts": 0,
    "created_by": "text",
    "last_modified_by": "text",
    "metric_definition": {
      "type": "USER_DEVICE_POINT"
    },
    "archived": false,
    "status": "INACTIVE",
    "id": "text",
    "datamart_id": "text",
    "display": {
      "name": "text",
      "description": "text",
      "icon": "text"
    }
  }
}

Update the order of audience segment identifiers metrics by datamart

put
/datamarts/{datamart_id}/audience_segment_identifiers_metrics_order
Path parameters
datamart_idstringRequired
Body
metrics_idsstring[]Required
Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
put/datamarts/{datamart_id}/audience_segment_identifiers_metrics_order
PUT /v1/datamarts/{datamart_id}/audience_segment_identifiers_metrics_order HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "metrics_ids": [
    "text"
  ]
}
{
  "status": "ok"
}

Run action on an audience segment identifiers metric

post
/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id}/action
Path parameters
datamart_idstringRequired
idstringRequired
Body
actionstring · enumRequiredPossible values:
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id}/action
POST /v1/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id}/action HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "action": "ACTIVATE"
}
{
  "status": "ok",
  "data": {
    "order_index": 0,
    "last_modified_ts": 0,
    "created_ts": 0,
    "created_by": "text",
    "last_modified_by": "text",
    "metric_definition": {
      "type": "USER_DEVICE_POINT"
    },
    "archived": false,
    "status": "INACTIVE",
    "id": "text",
    "datamart_id": "text",
    "display": {
      "name": "text",
      "description": "text",
      "icon": "text"
    }
  }
}

Get an audience segment identifiers metric by id

get
/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id}
Path parameters
datamart_idstringRequired
idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id}
GET /v1/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "order_index": 0,
    "last_modified_ts": 0,
    "created_ts": 0,
    "created_by": "text",
    "last_modified_by": "text",
    "metric_definition": {
      "type": "USER_DEVICE_POINT"
    },
    "archived": false,
    "status": "INACTIVE",
    "id": "text",
    "datamart_id": "text",
    "display": {
      "name": "text",
      "description": "text",
      "icon": "text"
    }
  }
}

Update an audience segment identifiers metric

put
/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id}
Path parameters
datamart_idstringRequired
idstringRequired
Body
order_indexinteger · int32RequiredDefault: 0
last_modified_tsinteger · int64Read-onlyOptionalDefault: 0
created_tsinteger · int64Read-onlyRequiredDefault: 0
created_bystringRead-onlyRequired
last_modified_bystringRead-onlyOptional
archivedbooleanRequiredDefault: false
statusstring · enumRequiredPossible values:
idstringRead-onlyRequired
datamart_idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id}
PUT /v1/datamarts/{datamart_id}/audience_segment_identifiers_metrics/{id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 164

{
  "order_index": 0,
  "metric_definition": {
    "type": "USER_DEVICE_POINT"
  },
  "archived": false,
  "status": "INACTIVE",
  "display": {
    "name": "text",
    "description": "text",
    "icon": "text"
  }
}
{
  "status": "ok",
  "data": {
    "order_index": 0,
    "last_modified_ts": 0,
    "created_ts": 0,
    "created_by": "text",
    "last_modified_by": "text",
    "metric_definition": {
      "type": "USER_DEVICE_POINT"
    },
    "archived": false,
    "status": "INACTIVE",
    "id": "text",
    "datamart_id": "text",
    "display": {
      "name": "text",
      "description": "text",
      "icon": "text"
    }
  }
}

Last updated

Was this helpful?