Audience Segment Metrics
Operations related to Audience Segment Metrics that define custom measurements on each segment (number of emails, number of User Accounts, etc.).
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/audience_segment_metrics/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"creation_date": 0,
"technical_name": "emails",
"datafarm_key": "text",
"id": "text",
"icon": "text",
"status": "DRAFT",
"last_modified_date": 0,
"last_published_date": 0,
"query_id": "text",
"display_name": "text",
"datamart_id": "text"
}
}000Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/audience_segment_metrics/{id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"technical_name": "emails",
"icon": "text",
"status": "DRAFT",
"query_id": "text",
"display_name": "text"
}{
"status": "ok",
"data": {
"creation_date": 0,
"technical_name": "emails",
"datafarm_key": "text",
"id": "text",
"icon": "text",
"status": "DRAFT",
"last_modified_date": 0,
"last_published_date": 0,
"query_id": "text",
"display_name": "text",
"datamart_id": "text"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/audience_segment_metrics/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Offset from which the search must be performed
Maximum number of items that may be returned by the query
The id of the query that will be performed on the audience segment in the job
Metric's backend technical name
Metric's frontend display name
Metric's frontend icon
Metric's status DRAFT, LIVE or ARCHIVED
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/audience_segment_metrics HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"count": 1,
"first_result": 1,
"total": 1,
"data": [
{
"creation_date": 0,
"technical_name": "emails",
"datafarm_key": "text",
"id": "text",
"icon": "text",
"status": "DRAFT",
"last_modified_date": 0,
"last_published_date": 0,
"query_id": "text",
"display_name": "text",
"datamart_id": "text"
}
],
"max_results": 1
}000Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/audience_segment_metrics HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"technical_name": "emails",
"icon": "text",
"status": "DRAFT",
"query_id": "text",
"display_name": "text"
}{
"status": "ok",
"data": {
"creation_date": 0,
"technical_name": "emails",
"datafarm_key": "text",
"id": "text",
"icon": "text",
"status": "DRAFT",
"last_modified_date": 0,
"last_published_date": 0,
"query_id": "text",
"display_name": "text",
"datamart_id": "text"
}
}Perform action on AudienceSegmentMetric
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/audience_segment_metrics/{id}/action HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"action": "PUBLISH"
}{
"status": "ok",
"data": {
"creation_date": 0,
"technical_name": "emails",
"datafarm_key": "text",
"id": "text",
"icon": "text",
"status": "DRAFT",
"last_modified_date": 0,
"last_published_date": 0,
"query_id": "text",
"display_name": "text",
"datamart_id": "text"
}
}Last updated
Was this helpful?