Skip to content

Funnel methods: update, delete

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

Reference for Funnel, one group of Funnel methods.

Funnel.update

Changes the given properties of a Funnel. Verb page.

TypeScript
interface FunnelVerbs {
  update(input: FunnelUpdateInput, options?: SB.CallOptions): SB.Call<Funnel>
}

Emits Funnel.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Funnel.
stepsjsonThe Pages, Forms, and Sequences in order.

Returns

OutputTypeRequiredDescription
funnelFunnelrequiredThe Funnel.

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 funnel = await $.Funnel.update({ id: 'funnel_nXbfyw7dTw', steps: {} })

Funnel.delete

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

TypeScript
interface FunnelVerbs {
  delete(input: FunnelDeleteInput, options?: SB.CallOptions): SB.Call<Funnel>
}

Emits Funnel.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Funnel.

Returns

OutputTypeRequiredDescription
funnelFunnelrequiredThe Funnel.

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 funnel = await $.Funnel.delete({ id: 'funnel_nXbfyw7dTw' })