# Page programs: update, delete

URL: /code/mcp/page/records-update · Id: `page:code/mcp/page/records-update`

> The Page Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for [Page](/business/nouns/page), one group of [Page programs](/code/mcp/page).

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

```text
do: return await $.Page.update(input)
```

Emits `Page.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Page. |
| `path` | `string` | No | The path under its Site, such as `/pricing`. |
| `kind` | `string` | No | The page type, such as `landing`, `pricing`, or `terms`. |
| `from` | `string` | No | Lineage: the slot it compiles from, as `Hypothesis#<slot>@v<version>`. |

**Returns**

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

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

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Page.update({ id: 'page_A8w9CXatRR', path: '/' })"
  }
}
```

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

```text
do: return await $.Page.delete(input)
```

Emits `Page.deleted`.

**Inputs**

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

**Returns**

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

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

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Page.delete({ id: 'page_A8w9CXatRR' })"
  }
}
```