# Dataset

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

> A Dataset is a Product of curated Things of one Noun, with a promise that they are true.

A Dataset is a [Product](/business/nouns/product) of curated [Things](/business/nouns/thing) of one [Noun](/business/nouns/noun), with a promise that they are true.

## Properties
| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `records` | `integer` | No | How many Things it holds. |
| `refreshedAt` | `datetime` | No | When its Sources were last read. |

<details>
<summary>Inherited from [Product](/business/nouns/product): 3 properties</summary>

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | The name of the Product. |
| `promise` | `text` | Yes | What the Customer can rely on. |
| `status` | `string` | Yes | One of `draft`, `selling` or `retired`, set by its Offers. |

</details>

## Object
```json
{
  "$id": "https://api.sb/tutorloop.com/datasets/dataset_1",
  "$type": "Dataset",
  "name": "TutorLoop",
  "promise": "A tutor confirmed within one hour.",
  "status": "draft",
  "records": 1,
  "refreshedAt": "2026-10-22T12:00:00Z"
}
```

## Relationships
- <a id="rel-curates"></a>A Dataset **curates** one [Noun](/business/nouns/noun): a Dataset collects and vouches for the [Things](/business/nouns/thing) of exactly one [Noun](/business/nouns/noun). `curates`, inverse [`curatedIn`](/business/nouns/noun#rel-curated-in).

## Verbs
| Verb | Description | Subject | Event | Class |
| --- | --- | --- | --- | --- |
| <a id="create"></a>[Dataset.create](/business/nouns/dataset/create) | Creates a Dataset. Inherited from [Noun](/business/nouns/noun). | None. | `Dataset.created` | Two-way: `try`, `send`, `do` |
| <a id="get"></a>[Dataset.get](/business/nouns/dataset/get) | Returns one Dataset by id. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="list"></a>[Dataset.list](/business/nouns/dataset/list) | Returns Datasets, newest first, one page at a time. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="update"></a>[Dataset.update](/business/nouns/dataset/update) | Changes the given properties of a Dataset. Inherited from [Noun](/business/nouns/noun). | None. | `Dataset.updated` | Two-way: `try`, `send`, `do` |
| <a id="delete"></a>[Dataset.delete](/business/nouns/dataset/delete) | Deletes a Dataset; its history is kept. Inherited from [Noun](/business/nouns/noun). | None. | `Dataset.deleted` | One-way: `send`, `do` |

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

| Operation | `owner` | `admin` | `member` | `viewer` |
| --- | --- | --- | --- | --- |
| `Dataset.create` | Yes | Yes | Yes | No |
| `Dataset.get` | Yes | Yes | Yes | Yes |
| `Dataset.list` | Yes | Yes | Yes | Yes |
| `Dataset.update` | Yes | Yes | Yes | No |
| `Dataset.delete` | Yes | Yes | Yes | No |

## Call it

**Ask**

```text
Add a dataset to QuietCopy.
```

**API**

```bash
curl -X POST https://api.sb/quietcopy.com/datasets \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"QuietCopy","promise":"Line-by-line edits within one day."}'
```

```json
{
  "api": "https://api.sb/quietcopy.com",
  "dataset": {
    "$id": "https://api.sb/quietcopy.com/datasets/dataset_1",
    "$type": "Dataset",
    "name": "QuietCopy",
    "promise": "Line-by-line edits within one day.",
    "status": "draft"
  },
  "action": {
    "$id": "https://api.sb/quietcopy.com/actions/action_1",
    "operation": "Dataset.create",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/quietcopy.com/actions/action_1"
  }
}
```

**SDK**

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

const dataset = await $.Dataset.create({ name: 'QuietCopy', promise: 'Line-by-line edits within one day.' })
```

**CLI**

```bash
npx startup-builder do Dataset.create --json '{"name":"QuietCopy","promise":"Line-by-line edits within one day."}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Dataset.create({ name: 'QuietCopy', promise: 'Line-by-line edits within one day.' })"
  }
}
```

## Example
A Dataset of 4.2 million business registrations across 50 states refreshes nightly. It promises each record matches the state filing as of its `refreshedAt`.