# Waitlist commands: update, delete

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

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

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

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

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

Emits `Waitlist.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Waitlist. |
| `invited` | `integer` | No | How many Leads have been invited. |
| `rank` | `string` | No | The invite order: first come, best ICP fit, or most referrals first. |

**Returns**

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

**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 Waitlist.update --json '{"id":"waitlist_rBixb72HGB","invited":1}'
```

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

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

Emits `Waitlist.deleted`.

**Inputs**

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

**Returns**

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

**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 Waitlist.delete --json '{"id":"waitlist_rBixb72HGB"}'
```