# Startup Template methods: update, delete

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

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

Reference for [Startup Template](/business/nouns/startup-template), one group of [Startup Template methods](/code/sdk/startup-template).

### StartupTemplate.update
Changes the given properties of a Startup Template. [Verb page](/business/nouns/startup-template/update?interface=sdk).

```ts
interface StartupTemplateVerbs {
  update(input: StartupTemplateUpdateInput, options?: SB.CallOptions): SB.Call<StartupTemplate>
}
```

Emits `StartupTemplate.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Startup Template. |
| `slug` | `string` | No | The argument to `create --template` and the page path under `/start/templates`. |
| `operatingModel` | `string` | No | The human and Agent mix: `autonomous`, `single-human`, or `multi-human`. |
| `motions` | `string[]` | No | The Motions its Offers sell through, such as `b2b` or `b2a`. |
| `extends` | [Startup Template](/business/nouns/startup-template) | No | The base Startup Template whose Product Templates, Systems, Processes, and Roles it inherits. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `startupTemplate` | [Startup Template](/business/nouns/startup-template) | Yes | The Startup Template. |

**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 startupTemplate = await $.StartupTemplate.update({ id: 'stpl_9OivLWR17L', slug: 'leaseline' })
```

### StartupTemplate.delete
Deletes a Startup Template: a soft delete that keeps its history, undone by `Thing.restore`. [Verb page](/business/nouns/startup-template/delete?interface=sdk).

```ts
interface StartupTemplateVerbs {
  delete(input: StartupTemplateDeleteInput, options?: SB.CallOptions): SB.Call<StartupTemplate>
}
```

Emits `StartupTemplate.deleted`.

**Inputs**

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

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `startupTemplate` | [Startup Template](/business/nouns/startup-template) | Yes | The Startup Template. |

**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 startupTemplate = await $.StartupTemplate.delete({ id: 'stpl_9OivLWR17L' })
```