# Gathering methods: update, delete

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

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

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

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

```ts
interface GatheringVerbs {
  update(input: GatheringUpdateInput, options?: SB.CallOptions): SB.Call<Gathering>
}
```

Emits `Gathering.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Gathering. |
| `title` | `string` | No | What the Gathering is called on its Page and invitations. |
| `at` | `datetime` | No | When it starts. |
| `capacity` | `integer` | No | The most Registrations it admits before new ones join the waitlist. |
| `recording` | `url` | No | Where the replay lives once it ends. |

**Returns**

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

**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 gathering = await $.Gathering.update({ id: 'gathering_ACB9Q1atRR', title: 'Leaseline Pro' })
```

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

```ts
interface GatheringVerbs {
  delete(input: GatheringDeleteInput, options?: SB.CallOptions): SB.Call<Gathering>
}
```

Emits `Gathering.deleted`.

**Inputs**

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

**Returns**

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

**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 gathering = await $.Gathering.delete({ id: 'gathering_ACB9Q1atRR' })
```