# Party methods: update, delete

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

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

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

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

```ts
interface PartyVerbs {
  update(input: PartyUpdateInput, options?: SB.CallOptions): SB.Call<Party>
}
```

Emits `Party.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Party. |
| `name` | `string` | No | The legal or personal name. |

**Returns**

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

**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 party = await $.Party.update({ id: 'party_hmQWaPrAyZ', name: 'Leaseline' })
```

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

```ts
interface PartyVerbs {
  delete(input: PartyDeleteInput, options?: SB.CallOptions): SB.Call<Party>
}
```

Emits `Party.deleted`.

**Inputs**

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

**Returns**

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

**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 party = await $.Party.delete({ id: 'party_hmQWaPrAyZ' })
```