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

Standard Segment Builders

Operations related to Standard Segment Builders, the Datamart-linked resources that provide the fastest and easiest way to create segments without requiring OTQL expertise. They leverage Audience Features to enable business users to build complex segments with live insights and dynamic dashboards, using intuitive selectors instead of query syntax.

Relevant documentation:

Fetch an stadrad segment builder

get
/datamarts/{datamart_id}/standard_segment_builders
Path parameters
datamart_idstringRequired
Query parameters
namestringOptional

The name of the standard segment builder

idstringOptional

The id of the standard segment builder

initial_audience_feature_idstring[]Optional

The AudienceFeatures that are by default in the standard segment builder

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that may be returned by this search

Responses
200

Success !

application/json
totalintegerRequired
countintegerRequired
statusstring · enumRequiredPossible values:
max_resultsintegerRequired
first_resultintegerRequired
get/datamarts/{datamart_id}/standard_segment_builders
GET /v1/datamarts/{datamart_id}/standard_segment_builders HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "total": 1,
  "count": 1,
  "status": "ok",
  "max_results": 1,
  "first_result": 1,
  "data": [
    {
      "initial_audience_feature_ids": [
        "text"
      ],
      "id": "text",
      "datamart_id": "text",
      "name": "text",
      "creation_date": 0
    }
  ]
}

Create a standard segment builder

post
/datamarts/{datamart_id}/standard_segment_builders
Path parameters
datamart_idstringRequired
Body
initial_audience_feature_idsstring[]Optional
idstringRead-onlyRequired
datamart_idstringRequired
namestringRequired
creation_dateinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

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

{
  "initial_audience_feature_ids": [
    "text"
  ],
  "datamart_id": "text",
  "name": "text"
}
{
  "status": "ok",
  "data": {
    "initial_audience_feature_ids": [
      "text"
    ],
    "id": "text",
    "datamart_id": "text",
    "name": "text",
    "creation_date": 0
  }
}

Get standard segment builder by id

get
/datamarts/{datamart_id}/standard_segment_builders/{standard_segment_builder_id}
Path parameters
datamart_idstringRequired
standard_segment_builder_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/standard_segment_builders/{standard_segment_builder_id}
GET /v1/datamarts/{datamart_id}/standard_segment_builders/{standard_segment_builder_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "initial_audience_feature_ids": [
      "text"
    ],
    "id": "text",
    "datamart_id": "text",
    "name": "text",
    "creation_date": 0
  }
}

Update standard segment builder

put
/datamarts/{datamart_id}/standard_segment_builders/{standard_segment_builder_id}
Path parameters
datamart_idstringRequired
standard_segment_builder_idstringRequired
Body
initial_audience_feature_idsstring[]Optional
idstringRead-onlyRequired
datamart_idstringRequired
namestringRequired
creation_dateinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

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

{
  "initial_audience_feature_ids": [
    "text"
  ],
  "datamart_id": "text",
  "name": "text"
}
{
  "status": "ok",
  "data": {
    "initial_audience_feature_ids": [
      "text"
    ],
    "id": "text",
    "datamart_id": "text",
    "name": "text",
    "creation_date": 0
  }
}

Delete standard segment builder

delete
/datamarts/{datamart_id}/standard_segment_builders/{standard_segment_builder_id}
Path parameters
datamart_idstringRequired
standard_segment_builder_idstringRequired
Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/datamarts/{datamart_id}/standard_segment_builders/{standard_segment_builder_id}
DELETE /v1/datamarts/{datamart_id}/standard_segment_builders/{standard_segment_builder_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Last updated

Was this helpful?