Budget commands: update, delete
The Budget Verbs update, delete as CLI commands, with inputs, result, refusals and an example.
Reference for Budget, one group of Budget commands.
Budget.update
Changes the given properties of a Budget. Verb page.
npx startup-builder do Budget.update --json '<input>' [--try | --send | --do]Emits Budget.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Budget. |
account | string | The chart-of-accounts code it plans, such as expense.ads. | |
period | Period | The Period it plans. | |
amount | money | The amount set for the account in the Period. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
budget | Budget | required | The Budget. |
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 Budget.update --json '{"id": "budget_qnCdsFGLVN", "account": "expense.ads"}'Budget.delete
Deletes a Budget: a soft delete that keeps its history, undone by Thing.restore. Verb page.
npx startup-builder do Budget.delete --json '<input>' [--try | --send | --do]Emits Budget.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Budget. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
budget | Budget | required | The Budget. |
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 Budget.delete --json '{"id": "budget_qnCdsFGLVN"}'