Skip to main content
Updates an edge case’s title, persona, environment, brief, preceded-by link or expectations. Omitted fields are left alone; additionalExpectations replaces the set wholesale rather than appending. Promoting it to the happy path is a separate call, since that also demotes the incumbent.
Calls PUT /v1/customer-flow/{flowId}/edge-case/{edgeCaseId}

Arguments

string
required
The flow-id.
string
required
The edge-case-id.

Options

string
string
string
string
string
switch
Whether this edge case is graded on the flow’s agentExpectations as well as its own additionalExpectations. Defaults to true; false grades it on its additionalExpectations only.
string
The persona this runs as. Null on an edge case inherits the happy path’s.
array
The expectations graded on this variant only, on top of the flow’s own. Sent as the complete set: it replaces whatever the variant had, so omit it to leave the set alone and send [] to clear it. Improv flows only: a scripted variant’s expectations come from the agent turns on its path and are rewritten on every graph edit.

Example

Every command also takes the global options and sets one of the exit codes.