# Version

URL: /business/nouns/version · Id: `noun:version`

> A Version is an immutable build of a definition at a fingerprint; an Order keeps the Offer Version it bought.

A Version is an immutable build of a definition at a fingerprint; an [Order](/business/nouns/order) keeps the [Offer](/business/nouns/offer) Version it bought.

## Properties
| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `fingerprint` | `string` | Yes | The content hash that identifies the build. |

## Object
```json
{
  "$id": "https://api.sb/quietcopy.com/versions/version_1",
  "$type": "Version",
  "fingerprint": "sha256:9f2c4e1a7b3d"
}
```

## Relationships
- <a id="rel-pinned-cohorts"></a>A Version **is pinned cohorts** many [Cohorts](/business/nouns/cohort): every [Startup](/business/nouns/startup) in a [Cohort](/business/nouns/cohort) runs the same Version of a shared definition; a control Cohort keeps the prior one. `pinnedCohorts`, inverse [`pinnedTo`](/business/nouns/cohort#rel-pinned-to).
- <a id="rel-version-of"></a>A Version **is a version of** one [Thing](/business/nouns/thing): every published change to a [Thing](/business/nouns/thing)’s definition is an immutable Version, kept forever. `versionOf`, inverse [`versionedAs`](/business/nouns/thing#rel-versioned-as).

## Verbs
| Verb | Description | Subject | Event | Class |
| --- | --- | --- | --- | --- |
| [Version.deploy](/business/nouns/version/deploy) | Deploy points a Startup’s live address at a Version, so every Interface serves that build. | [Engineering Lead](/agents/engineering/engineering-lead) | [`Version.deployed`](/business/events/Version.deployed) | None. |
| <a id="get"></a>[Version.get](/business/nouns/version/get) | Returns one Version by id. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="list"></a>[Version.list](/business/nouns/version/list) | Returns Versions, newest first, one page at a time. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |

A Version is kept forever and never edited: it has no `update` or `delete`.

## Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.

| Operation | `owner` | `admin` | `member` | `viewer` |
| --- | --- | --- | --- | --- |
| `Version.get` | Yes | Yes | Yes | Yes |
| `Version.list` | Yes | Yes | Yes | Yes |
| `Version.deploy` | Yes | Yes | Yes | No |

## Call it

**Ask**

```text
Deploy the latest version.
```

**API**

```bash
curl -X POST https://api.sb/patentpad.com/versions/version_1/deploy \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/patentpad.com",
  "version": {
    "$id": "https://api.sb/patentpad.com/versions/version_1",
    "$type": "Version",
    "fingerprint": "sha256:9f2c4e1a7b3d"
  },
  "action": {
    "$id": "https://api.sb/patentpad.com/actions/action_1",
    "operation": "Version.deploy",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/patentpad.com/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const version = await $.Version.deploy({ version: 'version_1' })
```

**CLI**

```bash
npx startup-builder do Version.deploy --json '{"version":"version_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Version.deploy({ version: 'version_1' })"
  }
}
```

## Example
A dental group's [Order](/business/nouns/order) points to Version 3 of the $99 [Offer](/business/nouns/offer). Version 4 raises the [Price](/business/nouns/price) to $119, and the Order keeps Version 3.