Skip to main content
POST
Create an experiment

Authorizations

Authorization
string
header
required

A personal API token from the platform's settings page, or an OAuth access token.

Path Parameters

uid
integer
required

Publisher ID (uid).

Body

application/json
title
string
required

Experiment name.

Maximum string length: 50
start
string<date>
required

First day of the experiment (YYYY-MM-DD). It starts at 00:00:00 that day.

subject
Subjects · object[]
required

The configs to test against each other (at least two) and the share of traffic each gets. Every config must belong to this publisher and not have been deleted, total allocation must be 100 or less, and none of the configs may be in another experiment with overlapping dates.

Minimum array length: 2
description
string | null

Optional notes.

end
string<date> | null

Last day of the experiment (YYYY-MM-DD), running to 23:59:59. Must be after start. Null or left out means no end date.

auto_activate
boolean
default:false

Whether the winning config should be activated automatically when the experiment ends.

device_filter
Device filter · object

Limit by device type. type decides whether the matches are included or excluded; empty matches means no filtering.

browser_filter
Browser filter · object

Limit by browser. Web units only. Values the dashboard offers: chrome, safari, firefox, edge, ie, opera, yandex. type decides whether the matches are included or excluded; empty matches means no filtering.

geo_filter
Country filter · object

Limit by visitor country. Matches are ISO 3166-1 alpha-2 country codes in upper case, such as GB or US. type decides whether the matches are included or excluded; empty matches means no filtering.

region_filter
Region filter · object

Limit by continent. type decides whether the matches are included or excluded; empty matches means no filtering.

audience_filter
Audience filter · object

Limit by audience segment. Matches are audience segment IDs. type decides whether the matches are included or excluded; empty matches means no filtering.

url_filter
URL filter · object

Limit by page path. Matches are paths such as /pets/dogs, and a trailing * matches anything under a path (/pets/*). type decides whether the matches are included or excluded; empty matches means no filtering.

viewport_filter
Viewport filter · object

Limit by viewport width in pixels. Matches are comparisons using >, <, >=, <=, ≥ or ≤ followed by a width, such as >=1024px or <728px. Use one lower and one upper bound at most. type decides whether the matches are included or excluded; empty matches means no filtering.

os_filter
Operating system filter · object

Limit by operating system. Values the dashboard offers: android, ios. type decides whether the matches are included or excluded; empty matches means no filtering.

Response

OK: The created experiment.

results
object
required
success
boolean
required