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

Short display name. Put details in description.

trackingKey
string
required

Key sent with exposure events. Keep it short, in kebab-case. Changing it after launch splits exposures across two keys.

decisionMetric
string
required
variations
object[]
required
datasource
string
required
contextualBanditQueryId
string
required
contextualAttributes
string[]
required
description
string

Markdown. Put context here, not in the name.

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[]

Tags for filtering and grouping. Use these instead of encoding groups in names.

hashAttribute
string
minUsersPerLeaf
integer
maxLeaves
integer
Required range: x <= 12
priorSampleSize
integer
Required range: x >= 0
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

Resource created

contextualBandit
object
required