Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

Body

application/json
name
string
required
key
string
required

The key your code passes to interleave() as ranker. Can't be changed later. Several experiments may share a key so you can iterate without changing code, but only one of them can be running in a given environment, and each needs its own trackingKey.

Pattern: ^[a-zA-Z0-9_.:\|\-]+$
variations
tuple
required

Exactly two rankers. Users who are not exposed to interleaved rankings get the first ranker's list.

datasource
string
required
interleavingQueryId
string
required
userIdType
string
required
description
string
Maximum string length: 10000
project
string
owner
string

The userId or email address of the owner. If an email address is provided, it will be used to look up the userId of the matching organization member. If an ID is provided, it will be validated as existing in the organization.

tags
string[]
trackingKey
string

The experiment_id recorded in exposures. Defaults to key.

hashAttribute
string
jsonSchema
object

Validation schema to stage on the draft. The server sets date, so don't send it.

metrics
object[]
coverage
number
Required range: 0 <= x <= 1
condition
string
savedGroups
object[]
prerequisites
object[]
environmentSettings
object

Response

Resource created

interleaving
object
required