# Funnel methods: update, delete

URL: /code/sdk/funnel/records-update · Id: `page:code/sdk/funnel/records-update`

> The Funnel Verbs update, delete as typed SDK methods, with inputs, result, refusals and an example.

Reference for [Funnel](/business/nouns/funnel), one group of [Funnel methods](/code/sdk/funnel).

### Funnel.update
Changes the given properties of a Funnel. [Verb page](/business/nouns/funnel/update?interface=sdk).

```ts
interface FunnelVerbs {
  update(input: FunnelUpdateInput, options?: SB.CallOptions): SB.Call<Funnel>
}
```

Emits `Funnel.updated`.

**Inputs**

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

**Returns**

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

**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. | None. |

**Example**

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

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

### Funnel.delete
Deletes a Funnel: a soft delete that keeps its history, undone by `Thing.restore`. [Verb page](/business/nouns/funnel/delete?interface=sdk).

```ts
interface FunnelVerbs {
  delete(input: FunnelDeleteInput, options?: SB.CallOptions): SB.Call<Funnel>
}
```

Emits `Funnel.deleted`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Funnel. |

**Returns**

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

**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. | None. |

**Example**

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

const funnel = await $.Funnel.delete({ id: 'funnel_nXbfyw7dTw' })
```