Skip to main content
PUT
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

flowId
string<uuid>
required
variantId
string<uuid>
required

Body

application/json

Fields to change on a variant. Omitted fields are left alone. Making a variant the default is a separate operation, since it also demotes the current default.

title
string
Minimum string length: 1
personaId
string<uuid> | null
environmentId
string<uuid> | null
prompt
string | null
precededByCustomerFlowId
string<uuid> | null
precededByCustomerFlowVariantId
string<uuid> | null
additionalExpectations
object[]

Replaces the expectations that apply to this variant on top of the flow's. Omit to leave them alone, send [] to clear. Unscripted flows only: a scripted variant's expectations come from the agent turns on its path and are rewritten on the next step edit.

Response

The updated variant

data
object
required

One way of running a flow. Exactly one variant per flow is the default; the others inherit its persona and environment wherever they leave those unset. On a scripted flow each variant is bound to one path through the graph and the path engine owns that binding.