Skip to content

Waitlist methods: update, delete

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

Reference for Waitlist, one group of Waitlist methods.

Waitlist.update

Changes the given properties of a Waitlist. Verb page.

TypeScript
interface WaitlistVerbs {
  update(input: WaitlistUpdateInput, options?: SB.CallOptions): SB.Call<Waitlist>
}

Emits Waitlist.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Waitlist.
invitedintegerHow many Leads have been invited.
rankstringThe invite order: first come, best ICP fit, or most referrals first.

Returns

OutputTypeRequiredDescription
waitlistWaitlistrequiredThe Waitlist.

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 waitlist = await $.Waitlist.update({ id: 'waitlist_rBixb72HGB', invited: 1 })

Waitlist.delete

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

TypeScript
interface WaitlistVerbs {
  delete(input: WaitlistDeleteInput, options?: SB.CallOptions): SB.Call<Waitlist>
}

Emits Waitlist.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Waitlist.

Returns

OutputTypeRequiredDescription
waitlistWaitlistrequiredThe Waitlist.

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 waitlist = await $.Waitlist.delete({ id: 'waitlist_rBixb72HGB' })