# Waitlist methods: update, delete

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

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

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

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

```ts
interface WaitlistVerbs {
  update(input: WaitlistUpdateInput, options?: SB.CallOptions): SB.Call<Waitlist>
}
```

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

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

const waitlist = await $.Waitlist.update({ 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=sdk).

```ts
interface WaitlistVerbs {
  delete(input: WaitlistDeleteInput, options?: SB.CallOptions): SB.Call<Waitlist>
}
```

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

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

const waitlist = await $.Waitlist.delete({ id: 'waitlist_rBixb72HGB' })
```