# Thing commands: update, delete

URL: /code/cli/thing/records-update · Id: `page:code/cli/thing/records-update`

> The Thing Verbs update, delete as CLI commands, with inputs, result, refusals and an example.

Reference for [Thing](/business/nouns/thing), one group of [Thing commands](/code/cli/thing).

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

```text
npx startup-builder do Thing.update --json '<input>' [--try | --send | --do]
```

Emits `Thing.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Thing. |
| `type` | list of [Noun](/business/nouns/noun) | No | The Nouns this Thing is an instance of. |
| `outside` | `json` | No | The ids this Thing has in outside tools, one per Integration, so a re-run matches instead of duplicating. |

**Returns**

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

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

```bash
npx startup-builder do Thing.update --json '{"id":"thing_8ds0r9vvRl","type":["noun_v0akLUrXCN"]}'
```

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

```text
npx startup-builder do Thing.delete --json '<input>' [--try | --send | --do]
```

Emits `Thing.deleted`.

**Inputs**

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

**Returns**

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

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

```bash
npx startup-builder do Thing.delete --json '{"id":"thing_8ds0r9vvRl"}'
```