Skip to content
SDKProductSites and appsPage

Page methods: update, delete

The Page Verbs update, delete as typed SDK methods, with inputs, result, refusals and an example.

Reference for Page, one group of Page methods.

Page.update

Changes the given properties of a Page. Verb page.

TypeScript
interface PageVerbs {
  update(input: PageUpdateInput, options?: SB.CallOptions): SB.Call<Page>
}

Emits Page.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Page.
pathstringThe path under its Site, such as /pricing.
kindstringThe page type, such as landing, pricing, or terms.
fromstringLineage: the slot it compiles from, as Hypothesis#<slot>@v<version>.

Returns

OutputTypeRequiredDescription
pagePagerequiredThe Page.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const page = await $.Page.update({ id: 'page_A8w9CXatRR', path: '/' })

Page.delete

Deletes a Page: a soft delete that keeps its history, undone by Thing.restore. Verb page.

TypeScript
interface PageVerbs {
  delete(input: PageDeleteInput, options?: SB.CallOptions): SB.Call<Page>
}

Emits Page.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Page.

Returns

OutputTypeRequiredDescription
pagePagerequiredThe Page.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const page = await $.Page.delete({ id: 'page_A8w9CXatRR' })