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.

allowUnscopedRules
boolean

When the organization requires rules to target specific environments or Projects, set to true to save a rule that applies to All Environments and All Projects. Only set this when a person has explicitly asked you to. If a check blocks you, stop and ask a person instead of working around it.

draftVersion
integer

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

Response

Resource updated

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