Skip to main content
PUT
cURL

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The Contextual Bandit id

featureId
string
required

The linked feature id

Body

application/json
variations
object[]
required

One entry per Contextual Bandit variation. Every variation must be covered exactly once.

Minimum array length: 1
description
string
enabled
boolean
allEnvironments
boolean

Apply the rule in every environment. Defaults to true.

environments
string[]

Environments to apply the rule in when not all.

allProjects
boolean
projects
string[]
autoPublish
boolean

Publish the resulting revision immediately instead of leaving it as a draft.

draftVersion
integer

Update the rule on this existing draft revision instead of starting a new one.

Response

200 - application/json

Resource updated

featureId
string
required
ruleIds
string[]
required
revisionVersion
number
required
published
boolean
required