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
trackingKey
string
required
decisionMetric
string
required
variations
object[]
required
datasource
string
required
contextualBanditQueryId
string
required
contextualAttributes
string[]
required
description
string
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[]
hashAttribute
string
minUsersPerLeaf
integer
maxLeaves
integer
Required range: x <= 12
scheduleValue
number
scheduleUnit
enum<string>
Available options:
days,
hours
burnInValue
number
burnInUnit
enum<string>
Available options:
days,
hours
conversionWindowValue
number
conversionWindowUnit
enum<string>
Available options:
hours,
days

Response

200 - application/json

Resource created

contextualBandit
object
required