# update

URL: /business/nouns/story/update · Id: `verb:Story.update` · Call: `await $.Story.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 Story.

Update changes the given properties of a [Story](/business/nouns/story). 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 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. |

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

## Effects
- Emits `Story.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. | [Story.update](/business/nouns/story/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 story.
```

**API**

```bash
curl -X PATCH https://api.sb/petpantry.shop/stories/story_1 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"icp":"icp_1"}'
```

```json
{
  "api": "https://api.sb/petpantry.shop",
  "story": {
    "$id": "https://api.sb/petpantry.shop/stories/story_1",
    "$type": "Story",
    "icp": "icp_1",
    "hero": "Example hero",
    "problem": "problem_1",
    "from": "Hypothesis#approach@v1"
  },
  "action": {
    "$id": "https://api.sb/petpantry.shop/actions/action_1",
    "operation": "Story.update",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/petpantry.shop/actions/action_1"
  }
}
```

**SDK**

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

const story = await $.Story.update({ id: 'story_1', icp: 'icp_1' })
```

**CLI**

```bash
npx startup-builder do Story.update --json '{"id":"story_1","icp":"icp_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Story.update({ id: 'story_1', icp: 'icp_1' })"
  }
}
```