Portfolio commands: update, delete
The Portfolio Verbs update, delete as CLI commands, with inputs, result, refusals and an example.
Reference for Portfolio, one group of Portfolio commands.
Portfolio.update
Changes the given properties of a Portfolio. Verb page.
npx startup-builder do Portfolio.update --json '<input>' [--try | --send | --do]Emits Portfolio.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Portfolio. |
type | list of Noun | The Nouns this Thing is an instance of. | |
outside | json | The ids this Thing has in outside tools, one per Integration, so a re-run matches instead of duplicating. | |
query | json | The saved query that defines a dynamic Collection. | |
membership | string | How each member belongs: held, owned, contracted, or made. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
portfolio | Portfolio | required | The Portfolio. |
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
npx startup-builder do Portfolio.update --json '{"id": "portfolio_zkvUnP8LwY", "membership": "held"}'Portfolio.delete
Deletes a Portfolio: a soft delete that keeps its history, undone by Thing.restore. Verb page.
npx startup-builder do Portfolio.delete --json '<input>' [--try | --send | --do]Emits Portfolio.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Portfolio. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
portfolio | Portfolio | required | The Portfolio. |
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
npx startup-builder do Portfolio.delete --json '{"id": "portfolio_zkvUnP8LwY"}'