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
edgeCaseId
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
environmentId
string<uuid> | null
prompt
string | null
precededByCustomerFlowId
string<uuid> | null
precededByCustomerFlowVariantId
string<uuid> | null
personaOverrideId
string<uuid> | null

The persona this runs as. Null on an edge case inherits the happy path's.

additionalExpectations
object[]

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

Response

The updated edge case

data
Scripted · object
required

One way of running a customer flow.