# Consent methods: update

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

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

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

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

```ts
interface ConsentVerbs {
  update(input: ConsentUpdateInput, options?: SB.CallOptions): SB.Call<Consent>
}
```

Emits `Consent.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Consent. |
| `basis` | `string` | No | The lawful basis, such as consent or contract. Never randomized. |
| `region` | `string` | No | The jurisdiction whose rules apply. Never randomized. |
| `withdrawnAt` | `datetime` | No | When the person withdrew it. Never randomized. |

**Returns**

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

**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 consent = await $.Consent.update({ id: 'consent_lMkrg7nUGY', withdrawnAt: '2026-10-22T12:00:00Z' })
```