# Story methods: update, delete

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

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

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

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

```ts
interface StoryVerbs {
  update(input: StoryUpdateInput, options?: SB.CallOptions): SB.Call<Story>
}
```

Emits `Story.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Story. |
| `icp` | [ICP](/business/nouns/icp) | No | The ICP it speaks to: one Story per ICP. |
| `hero` | `text` | No | Who the customer is and what they want. |
| `problem` | [Problem](/business/nouns/problem) | No | The Problem: external, internal, and the villain behind it. |
| `guide` | `text` | No | The Startup’s empathy and authority, the authority read from Metrics and Evidence. |
| `plan` | `text` | No | Three steps, each naming a declared Event. |
| `success` | `text` | No | What the customer gains. |
| `failure` | `text` | No | What the customer risks without it. |
| `oneLiner` | `string` | No | The Story in one sentence. |
| `direct` | [Offer](/business/nouns/offer) | No | The direct call to action: an Offer that makes a Customer. |
| `transitional` | [Funnel](/business/nouns/funnel) | No | The transitional call to action: a Funnel opt-in that makes a Lead. |
| `from` | `string` | No | Lineage: the slot it compiles from, as `Hypothesis#<slot>@v<version>`. |
| `stance` | `string` | No | The positioning the Positioning tournament chose, graded Behavior; every compiled asset recompiles when it changes. |
| `category` | `string` | No | The market category name the Story claims, as answer engines repeat it. |

**Returns**

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

**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 story = await $.Story.update({ id: 'story_ujkz1xjvrp', icp: 'icp_EwhsJU4AOW' })
```

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

```ts
interface StoryVerbs {
  delete(input: StoryDeleteInput, options?: SB.CallOptions): SB.Call<Story>
}
```

Emits `Story.deleted`.

**Inputs**

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

**Returns**

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

**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 story = await $.Story.delete({ id: 'story_ujkz1xjvrp' })
```