Service commands: update, delete
The Service Verbs update, delete as CLI commands, with inputs, result, refusals and an example.
Reference for Service, one group of Service commands.
Service.update
Changes the given properties of a Service. Verb page.
npx startup-builder do Service.update --json '<input>' [--try | --send | --do]Emits Service.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Service. |
name | string | The name of the Product. | |
promise | text | What the Customer can rely on. | |
floor | string | The human floor: none, sign, or practice. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
service | Service | required | The Service. |
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 Service.update --json '{"id": "service_Eq1ssq4AOW", "floor": "none"}'Service.delete
Deletes a Service: a soft delete that keeps its history, undone by Thing.restore. Verb page.
npx startup-builder do Service.delete --json '<input>' [--try | --send | --do]Emits Service.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Service. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
service | Service | required | The Service. |
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 Service.delete --json '{"id": "service_Eq1ssq4AOW"}'