# Noun routes: retire, trace

URL: /code/api/noun/verbs · Id: `page:code/api/noun/verbs`

> The Noun Verbs retire, trace as api.sb routes, with inputs, result, refusals and an example.

Reference for [Noun](/business/nouns/noun), one group of [Noun routes](/code/api/noun).

### Noun.retire
Retire removes a published Noun from new Versions; its records, its history and every pinned Version keep serving. [Verb page](/business/nouns/noun/retire?interface=api).

```text
POST /{namespace}/nouns/{noun}/retire
```

Path: `noun`. Emits [`Noun.retired`](/business/events/Noun.retired).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `noun` | [Noun](/business/nouns/noun) | Yes | The Noun to retire. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `version` | [Version](/business/nouns/version) | Yes | The new Version, without the Noun. |
| `noun` | [Noun](/business/nouns/noun) | Yes | The Noun, now retired from new Versions. |

**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**

```bash
curl -X POST https://api.sb/leaseline.app/nouns/noun_v0akLUrXCN/retire \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "version": {
    "$id": "https://api.sb/leaseline.app/versions/version_4HTEMs14G4",
    "$type": "Version",
    "fingerprint": "sha256:9f2c4e1a7b3d"
  },
  "noun": {
    "$id": "https://api.sb/leaseline.app/nouns/noun_v0akLUrXCN",
    "$type": "Noun",
    "name": "Leaseline",
    "status": "retired"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Noun.retire",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```

### Noun.trace
Trace lists every Verb, Process, Offer, Dashboard and Version that references a Noun, so an edit or a retire shows its reach first. [Verb page](/business/nouns/noun/trace?interface=api).

```text
POST /{namespace}/nouns/{noun}/trace
```

Path: `noun`. Emits [`Noun.traced`](/business/events/Noun.traced).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `noun` | [Noun](/business/nouns/noun) | Yes | The Noun to trace. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `uses` | `json` | Yes | Each referencing entry, by kind and id, with the published Versions that serve it. |
| `noun` | [Noun](/business/nouns/noun) | Yes | The Noun traced. |

**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**

```bash
curl -X POST https://api.sb/leaseline.app/nouns/noun_v0akLUrXCN/trace \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "uses": {},
  "noun": {
    "$id": "https://api.sb/leaseline.app/nouns/noun_v0akLUrXCN",
    "$type": "Noun",
    "name": "Leaseline",
    "status": "draft"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Noun.trace",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```