Noun routes: retire, trace
The Noun Verbs retire, trace as api.sb routes, with inputs, result, refusals and an example.
Reference for Noun, one group of Noun routes.
Noun.retire
Retire removes a published Noun from new Versions; its records, its history and every pinned Version keep serving. Verb page.
POST /{namespace}/ nouns/ {noun}/ retirePath: noun. Emits Noun.retired.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
noun | Noun | required | The Noun to retire. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
version | Version | required | The new Version, without the Noun. |
noun | Noun | required | 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 | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X POST https: //api.sb/ leaseline.app/ nouns/ noun_v0akLUrXCN/ retire \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"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.
POST /{namespace}/ nouns/ {noun}/ tracePath: noun. Emits Noun.traced.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
noun | Noun | required | The Noun to trace. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
uses | json | required | Each referencing entry, by kind and id, with the published Versions that serve it. |
noun | Noun | required | The Noun traced. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X POST https: //api.sb/ leaseline.app/ nouns/ noun_v0akLUrXCN/ trace \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"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"
}
}