Role commands: update, delete
The Role Verbs update, delete as CLI commands, with inputs, result, refusals and an example.
Reference for Role, one group of Role commands.
Role.update
Changes the given properties of a Role. Verb page.
npx startup-builder do Role.update --json '<input>' [--try | --send | --do]Emits Role.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Role. |
name | string | The title of the seat. | |
responsibilities | text | The work the seat owns. | |
approvals | json | What waits for the founder: rules by action class (spend, sign, publish, price, send), each optionally above an amount in USD. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
role | Role | required | The Role. |
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 Role.update --json '{"id": "role_oloMFMUeCH", "name": "Leaseline"}'Role.delete
Deletes a Role: a soft delete that keeps its history, undone by Thing.restore. Verb page.
npx startup-builder do Role.delete --json '<input>' [--try | --send | --do]Emits Role.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Role. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
role | Role | required | The Role. |
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 Role.delete --json '{"id": "role_oloMFMUeCH"}'