# update

URL: /business/nouns/funnel/update · Id: `verb:Funnel.update` · Call: `await $.Funnel.update({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Changes the given properties of a Funnel.

Update changes the given properties of a [Funnel](/business/nouns/funnel). It is inherited: every [Noun](/business/nouns/noun) has `get`, `list`, `create`, `update` and `delete`.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Funnel. |
| `steps` | `json` | No | The Pages, Forms, and Sequences in order. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `funnel` | [Funnel](/business/nouns/funnel) | Yes | The Funnel. |

## Effects
- Emits `Funnel.updated`.
- Two-way: `try`, `send`, `do`.

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Funnel.update](/business/nouns/funnel/update) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Change the latest funnel.
```

**API**

```bash
curl -X PATCH https://api.sb/routewise.dev/funnels/funnel_1 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"steps":{}}'
```

```json
{
  "api": "https://api.sb/routewise.dev",
  "funnel": {
    "$id": "https://api.sb/routewise.dev/funnels/funnel_1",
    "$type": "Funnel",
    "steps": {}
  },
  "action": {
    "$id": "https://api.sb/routewise.dev/actions/action_1",
    "operation": "Funnel.update",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/routewise.dev/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const funnel = await $.Funnel.update({ id: 'funnel_1', steps: {} })
```

**CLI**

```bash
npx startup-builder do Funnel.update --json '{"id":"funnel_1","steps":{}}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Funnel.update({ id: 'funnel_1', steps: {} })"
  }
}
```