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

Experiment Management

Operations related to Experiments for managing A/B tests and controlled experiments to measure feature impact and campaign performance.

Find experiment from a group segment id

get
/experiments/segment_groups/{segment_id}
Path parameters
segment_idstringRequired

The id of the group segment

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/experiments/segment_groups/{segment_id}
GET /v1/experiments/segment_groups/{segment_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "result_uri": "text",
    "last_modified_ts": 0,
    "name": "text",
    "archived_by": "text",
    "criterion_ids": [
      "text"
    ],
    "status": "DRAFT",
    "last_modified_by": "text",
    "description": "text",
    "id": "text",
    "archived": false,
    "created_ts": 0,
    "created_by": "text",
    "archived_ts": 0,
    "selected_identifying_resources": [
      {
        "compartment_type": "CUSTOM_COMPARTMENT_ID",
        "compartment_id": "text"
      }
    ],
    "groups": [
      {
        "id": "text",
        "type": "TEST",
        "proportion": 0,
        "segment_id": "text"
      }
    ],
    "source_segment_id": "text"
  }
}

Find experiments

get
/experiments
Query parameters
organisation_idinteger · int64Required

Organisation owning the source segment of the experiments

keywordsstringOptional

The keywords to match with experiment names

archivedbooleanOptional

If true the result will contain only archived experiments

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
max_resultsintegerRequired
first_resultintegerRequired
countintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
get/experiments
GET /v1/experiments?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "max_results": 1,
  "data": [
    {
      "result_uri": "text",
      "last_modified_ts": 0,
      "name": "text",
      "archived_by": "text",
      "criterion_ids": [
        "text"
      ],
      "status": "DRAFT",
      "last_modified_by": "text",
      "description": "text",
      "id": "text",
      "archived": false,
      "created_ts": 0,
      "created_by": "text",
      "archived_ts": 0,
      "selected_identifying_resources": [
        {
          "compartment_type": "CUSTOM_COMPARTMENT_ID",
          "compartment_id": "text"
        }
      ],
      "groups": [
        {
          "id": "text",
          "type": "TEST",
          "proportion": 0,
          "segment_id": "text"
        }
      ],
      "source_segment_id": "text"
    }
  ],
  "first_result": 1,
  "count": 1,
  "total": 1,
  "status": "ok"
}

Perform Actions on a experiment datamart configuration

post
/datamarts/{datamart_id}/experiments/configuration/action
Path parameters
datamart_idstringRequired
Body
actionstring · enumRequiredPossible values:
Responses
200

Success !

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

{
  "action": "ROTATE_PERMANENT_GROUP_SEGMENTS"
}
{
  "status": "ok",
  "data": {
    "archived": false,
    "outlier_threshold": 0,
    "archived_ts": 0,
    "control_group_size_limit": 0,
    "acceptance_threshold": 0,
    "last_modified_ts": 0,
    "datamart_id": "text",
    "id": "text",
    "permanent_control_group_activation": false,
    "default_group_distribution": "text",
    "created_by": "text",
    "archived_by": "text",
    "audience_partition_id": "text",
    "permanent_control_group_segment_ids": [
      "text"
    ],
    "last_modified_by": "text",
    "control_group_size_limit_activation": false,
    "permanent_control_group_size": 0,
    "created_ts": 0
  }
}

Search experiment by Id

get
/audience_segments/{segment_id}/experiments/{experiment_id}
Path parameters
segment_idstringRequired

The id of the segment of the experiment

experiment_idstringRequired

The experiment id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/audience_segments/{segment_id}/experiments/{experiment_id}
GET /v1/audience_segments/{segment_id}/experiments/{experiment_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "result_uri": "text",
    "last_modified_ts": 0,
    "name": "text",
    "archived_by": "text",
    "criterion_ids": [
      "text"
    ],
    "status": "DRAFT",
    "last_modified_by": "text",
    "description": "text",
    "id": "text",
    "archived": false,
    "created_ts": 0,
    "created_by": "text",
    "archived_ts": 0,
    "selected_identifying_resources": [
      {
        "compartment_type": "CUSTOM_COMPARTMENT_ID",
        "compartment_id": "text"
      }
    ],
    "groups": [
      {
        "id": "text",
        "type": "TEST",
        "proportion": 0,
        "segment_id": "text"
      }
    ],
    "source_segment_id": "text"
  }
}

Update experiment

put
/audience_segments/{segment_id}/experiments/{experiment_id}
Path parameters
segment_idstringRequired

The id of the segment of the experiment

experiment_idstringRequired

The experiment id

Body
result_uristringRead-onlyOptional
last_modified_tsinteger · int64Read-onlyRequiredDefault: 0
namestringRequired
archived_bystringRead-onlyOptional
criterion_idsstring[]Required
statusstring · enumRequiredPossible values:
last_modified_bystringRead-onlyRequired
descriptionstringOptional
idstringRead-onlyRequired
archivedbooleanRead-onlyRequiredDefault: false
created_tsinteger · int64Read-onlyRequiredDefault: 0
created_bystringRead-onlyRequired
archived_tsinteger · int64Read-onlyOptionalDefault: 0
source_segment_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/audience_segments/{segment_id}/experiments/{experiment_id}
PUT /v1/audience_segments/{segment_id}/experiments/{experiment_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 251

{
  "name": "text",
  "criterion_ids": [
    "text"
  ],
  "status": "DRAFT",
  "description": "text",
  "selected_identifying_resources": [
    {
      "compartment_type": "CUSTOM_COMPARTMENT_ID",
      "compartment_id": "text"
    }
  ],
  "groups": [
    {
      "type": "TEST",
      "proportion": 0
    }
  ],
  "source_segment_id": "text"
}
{
  "status": "ok",
  "data": {
    "result_uri": "text",
    "last_modified_ts": 0,
    "name": "text",
    "archived_by": "text",
    "criterion_ids": [
      "text"
    ],
    "status": "DRAFT",
    "last_modified_by": "text",
    "description": "text",
    "id": "text",
    "archived": false,
    "created_ts": 0,
    "created_by": "text",
    "archived_ts": 0,
    "selected_identifying_resources": [
      {
        "compartment_type": "CUSTOM_COMPARTMENT_ID",
        "compartment_id": "text"
      }
    ],
    "groups": [
      {
        "id": "text",
        "type": "TEST",
        "proportion": 0,
        "segment_id": "text"
      }
    ],
    "source_segment_id": "text"
  }
}

Execute action on experiment

post
/audience_segments/{segment_id}/experiments/{experiment_id}/action
Path parameters
segment_idstringRequired

The id of the segment of the experiment

experiment_idstringRequired

The experiment id

Body
object · ComputeActionOptional
orand
object · ArchiveAction1Optional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/audience_segments/{segment_id}/experiments/{experiment_id}/action
POST /v1/audience_segments/{segment_id}/experiments/{experiment_id}/action HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "type": "COMPUTE"
}
{
  "status": "ok",
  "data": {
    "result_uri": "text",
    "last_modified_ts": 0,
    "name": "text",
    "archived_by": "text",
    "criterion_ids": [
      "text"
    ],
    "status": "DRAFT",
    "last_modified_by": "text",
    "description": "text",
    "id": "text",
    "archived": false,
    "created_ts": 0,
    "created_by": "text",
    "archived_ts": 0,
    "selected_identifying_resources": [
      {
        "compartment_type": "CUSTOM_COMPARTMENT_ID",
        "compartment_id": "text"
      }
    ],
    "groups": [
      {
        "id": "text",
        "type": "TEST",
        "proportion": 0,
        "segment_id": "text"
      }
    ],
    "source_segment_id": "text"
  }
}

Search the datamart configuration for experiments

get
/datamarts/{datamart_id}/experiments/configuration
Path parameters
datamart_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/experiments/configuration
GET /v1/datamarts/{datamart_id}/experiments/configuration HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "archived": false,
    "outlier_threshold": 0,
    "archived_ts": 0,
    "control_group_size_limit": 0,
    "acceptance_threshold": 0,
    "last_modified_ts": 0,
    "datamart_id": "text",
    "id": "text",
    "permanent_control_group_activation": false,
    "default_group_distribution": "text",
    "created_by": "text",
    "archived_by": "text",
    "audience_partition_id": "text",
    "permanent_control_group_segment_ids": [
      "text"
    ],
    "last_modified_by": "text",
    "control_group_size_limit_activation": false,
    "permanent_control_group_size": 0,
    "created_ts": 0
  }
}

Update the datamart configuration for experiments

put
/datamarts/{datamart_id}/experiments/configuration
Path parameters
datamart_idstringRequired
Body
archivedbooleanRead-onlyRequiredDefault: false
outlier_thresholdinteger · int32RequiredDefault: 0
archived_tsinteger · int64Read-onlyOptionalDefault: 0
control_group_size_limitinteger · int64RequiredDefault: 0
acceptance_thresholdinteger · int32RequiredDefault: 0
last_modified_tsinteger · int64Read-onlyRequiredDefault: 0
datamart_idstringRequired
idstringRead-onlyRequired
permanent_control_group_activationbooleanRequiredDefault: false
default_group_distributionstringRequired
created_bystringRead-onlyRequired
archived_bystringRead-onlyOptional
audience_partition_idstringRead-onlyRequired
permanent_control_group_segment_idsstring[]Read-onlyRequired
last_modified_bystringRead-onlyRequired
control_group_size_limit_activationbooleanRequiredDefault: false
permanent_control_group_sizenumber · floatRequiredDefault: 0
created_tsinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

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

{
  "outlier_threshold": 0,
  "control_group_size_limit": 0,
  "acceptance_threshold": 0,
  "datamart_id": "text",
  "permanent_control_group_activation": false,
  "default_group_distribution": "text",
  "control_group_size_limit_activation": false,
  "permanent_control_group_size": 0
}
{
  "status": "ok",
  "data": {
    "archived": false,
    "outlier_threshold": 0,
    "archived_ts": 0,
    "control_group_size_limit": 0,
    "acceptance_threshold": 0,
    "last_modified_ts": 0,
    "datamart_id": "text",
    "id": "text",
    "permanent_control_group_activation": false,
    "default_group_distribution": "text",
    "created_by": "text",
    "archived_by": "text",
    "audience_partition_id": "text",
    "permanent_control_group_segment_ids": [
      "text"
    ],
    "last_modified_by": "text",
    "control_group_size_limit_activation": false,
    "permanent_control_group_size": 0,
    "created_ts": 0
  }
}

Find experiment templates

get
/datamarts/{datamart_id}/experiments/templates
Path parameters
datamart_idstringRequired
Query parameters
archivedbooleanOptional

If true the result will contain only archived experiment templates

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
totalintegerRequired
countintegerRequired
first_resultintegerRequired
max_resultsintegerRequired
get/datamarts/{datamart_id}/experiments/templates
GET /v1/datamarts/{datamart_id}/experiments/templates HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "total": 1,
  "count": 1,
  "data": [
    {
      "name": "text",
      "archived": false,
      "archived_ts": 0,
      "datamart_id": "text",
      "id": "text",
      "archived_by": "text",
      "created_ts": 0,
      "last_modified_by": "text",
      "created_by": "text",
      "criterion_ids": [
        "text"
      ],
      "last_modified_ts": 0
    }
  ],
  "first_result": 1,
  "max_results": 1
}

Create experiment template

post
/datamarts/{datamart_id}/experiments/templates
Path parameters
datamart_idstringRequired
Body
namestringRequired
archivedbooleanRequiredDefault: false
archived_tsinteger · int64Read-onlyOptionalDefault: 0
datamart_idstringRequired
idstringRead-onlyRequired
archived_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyRequiredDefault: 0
last_modified_bystringRead-onlyRequired
created_bystringRead-onlyRequired
criterion_idsstring[]Required
last_modified_tsinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

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

{
  "name": "text",
  "archived": false,
  "datamart_id": "text",
  "criterion_ids": [
    "text"
  ]
}
{
  "status": "ok",
  "data": {
    "name": "text",
    "archived": false,
    "archived_ts": 0,
    "datamart_id": "text",
    "id": "text",
    "archived_by": "text",
    "created_ts": 0,
    "last_modified_by": "text",
    "created_by": "text",
    "criterion_ids": [
      "text"
    ],
    "last_modified_ts": 0
  }
}

Search experiment template by Id

get
/datamarts/{datamart_id}/experiments/templates/{experiment_template_id}
Path parameters
datamart_idstringRequired
experiment_template_idstringRequired

The experiment template id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/experiments/templates/{experiment_template_id}
GET /v1/datamarts/{datamart_id}/experiments/templates/{experiment_template_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "name": "text",
    "archived": false,
    "archived_ts": 0,
    "datamart_id": "text",
    "id": "text",
    "archived_by": "text",
    "created_ts": 0,
    "last_modified_by": "text",
    "created_by": "text",
    "criterion_ids": [
      "text"
    ],
    "last_modified_ts": 0
  }
}

Update experiment template

put
/datamarts/{datamart_id}/experiments/templates/{experiment_template_id}
Path parameters
datamart_idstringRequired
experiment_template_idstringRequired

The experiment template id

Body
namestringRequired
archivedbooleanRequiredDefault: false
archived_tsinteger · int64Read-onlyOptionalDefault: 0
datamart_idstringRequired
idstringRead-onlyRequired
archived_bystringRead-onlyOptional
created_tsinteger · int64Read-onlyRequiredDefault: 0
last_modified_bystringRead-onlyRequired
created_bystringRead-onlyRequired
criterion_idsstring[]Required
last_modified_tsinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

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

{
  "name": "text",
  "archived": false,
  "datamart_id": "text",
  "criterion_ids": [
    "text"
  ]
}
{
  "status": "ok",
  "data": {
    "name": "text",
    "archived": false,
    "archived_ts": 0,
    "datamart_id": "text",
    "id": "text",
    "archived_by": "text",
    "created_ts": 0,
    "last_modified_by": "text",
    "created_by": "text",
    "criterion_ids": [
      "text"
    ],
    "last_modified_ts": 0
  }
}

Create experiment

post
/audience_segments/{segment_id}/experiments
Path parameters
segment_idstringRequired

The id of the segment of the experiment

Body
result_uristringRead-onlyOptional
last_modified_tsinteger · int64Read-onlyRequiredDefault: 0
namestringRequired
archived_bystringRead-onlyOptional
criterion_idsstring[]Required
statusstring · enumRequiredPossible values:
last_modified_bystringRead-onlyRequired
descriptionstringOptional
idstringRead-onlyRequired
archivedbooleanRead-onlyRequiredDefault: false
created_tsinteger · int64Read-onlyRequiredDefault: 0
created_bystringRead-onlyRequired
archived_tsinteger · int64Read-onlyOptionalDefault: 0
source_segment_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/audience_segments/{segment_id}/experiments
POST /v1/audience_segments/{segment_id}/experiments HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 251

{
  "name": "text",
  "criterion_ids": [
    "text"
  ],
  "status": "DRAFT",
  "description": "text",
  "selected_identifying_resources": [
    {
      "compartment_type": "CUSTOM_COMPARTMENT_ID",
      "compartment_id": "text"
    }
  ],
  "groups": [
    {
      "type": "TEST",
      "proportion": 0
    }
  ],
  "source_segment_id": "text"
}
{
  "status": "ok",
  "data": {
    "result_uri": "text",
    "last_modified_ts": 0,
    "name": "text",
    "archived_by": "text",
    "criterion_ids": [
      "text"
    ],
    "status": "DRAFT",
    "last_modified_by": "text",
    "description": "text",
    "id": "text",
    "archived": false,
    "created_ts": 0,
    "created_by": "text",
    "archived_ts": 0,
    "selected_identifying_resources": [
      {
        "compartment_type": "CUSTOM_COMPARTMENT_ID",
        "compartment_id": "text"
      }
    ],
    "groups": [
      {
        "id": "text",
        "type": "TEST",
        "proportion": 0,
        "segment_id": "text"
      }
    ],
    "source_segment_id": "text"
  }
}

Last updated

Was this helpful?