# Subscription methods: update

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

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

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

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

```ts
interface SubscriptionVerbs {
  update(input: SubscriptionUpdateInput, options?: SB.CallOptions): SB.Call<Subscription>
}
```

Emits `Subscription.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Subscription. |
| `renewsAt` | `datetime` | No | When it next renews. |
| `quantity` | `integer` | No | How many units of the Offer’s Price it holds, such as 12 members; 1 by default. |
| `trialEndsAt` | `datetime` | No | When a trial ends and the first paid period starts. |
| `termEndsAt` | `datetime` | No | When a committed term ends; the Renewal and the renewal notice read it. |

**Returns**

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

**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 subscription = await $.Subscription.update({ id: 'sub_whVFaHKWIV', renewsAt: '2026-10-22T12:00:00Z' })
```