> ## Documentation Index
> Fetch the complete documentation index at: https://docs.roark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# roark customer-flow edge-case update

> Update an edge case

Updates an edge case's title, persona, environment, brief, hold settings, 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.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark customer-flow edge-case update <flow-id> <edge-case-id> [options]
```

> [!NOTE]
>
> Calls `PUT /v1/customer-flow/{flowId}/edge-case/{edgeCaseId}`

## Arguments

**flow-id** `string` *required*

The flow-id.

**edge-case-id** `string` *required*

The edge-case-id.

## Options

**--title** `string`

**--environment-id** `string`

**--prompt** `string`

Improv flows only. The brief the simulated customer improvises from. Caller cues steer the caller from that point in the brief: `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut in on your agent. Cues are voice only. See "Caller cues" in the customer flows concept.

**--opening-line** `string`

**--hold-mode** `string`

How the simulated customer waits quietly on hold while your agent is busy. DEFAULT follows Roark's built-in rules: wait when the agent asks for a moment ("bear with me", "let me pull that up"), and never in place of answering a question. CUSTOM follows holdInstructions. NEVER means this customer never holds. Null on an edge case uses the happy path's mode, instructions and longest wait together; null on the happy path is DEFAULT. Applies to improv variants and to the improvised turns of scripted ones. One of `DEFAULT`, `CUSTOM`, `NEVER`

**--hold-instructions** `string`

CUSTOM only: when the simulated customer waits quietly, written as instructions it follows. It stays silent until the agent speaks again or the longest wait runs out, then takes the turn back. Required when holdMode is CUSTOM. Up to 4000 characters.

**--hold-max-seconds** `integer`

The longest one wait on hold can run, in seconds, from 5 to 600. When it runs out the simulated customer takes the turn back. Null uses the default, 180. Ignored when holdMode is NEVER.

**--preceded-by-customer-flow-id** `string`

**--preceded-by-customer-flow-variant-id** `string`

**--include-flow-expectations** `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.

**--persona-override-id** `string`

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

**--additional-expectations** `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

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark customer-flow edge-case update <flow-id> <edge-case-id>
```

Every command also takes the [global options](https://docs.roark.ai/cli-reference/overview.md#global-options) and sets one
of the [exit codes](https://docs.roark.ai/cli-reference/overview.md#exit-codes).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.