Page commands: update, delete
The Page Verbs update, delete as CLI commands, with inputs, result, refusals and an example.
Reference for Page, one group of Page commands.
Page.update
Changes the given properties of a Page. Verb page.
npx startup-builder do Page.update --json '<input>' [--try | --send | --do]Emits Page.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Page. |
path | string | The path under its Site, such as /. | |
kind | string | The page type, such as landing, pricing, or terms. | |
from | string | Lineage: the slot it compiles from, as Hypothesis#<slot>@v<version>. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
page | Page | required | The Page. |
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 Page.update --json '{"id": "page_A8w9CXatRR", "path": "/"}'Page.delete
Deletes a Page: a soft delete that keeps its history, undone by Thing.restore. Verb page.
npx startup-builder do Page.delete --json '<input>' [--try | --send | --do]Emits Page.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Page. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
page | Page | required | The Page. |
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 Page.delete --json '{"id": "page_A8w9CXatRR"}'