Skip to content

Startup methods: update, delete

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

Reference for Startup, one group of Startup methods.

Startup.update

Changes the given properties of a Startup. Verb page.

TypeScript
interface StartupVerbs {
  update(input: StartupUpdateInput, options?: SB.CallOptions): SB.Call<Startup>
}

Emits Startup.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Startup.
namestringThe name the Startup trades under.
domainurlThe canonical hostname of the Startup.
launchedAtdatetimeWhen the Startup went live.
templatestringThe slug of the template it extends; the root one when none is named.
ideatextThe Idea it starts from, in a sentence, recorded as its Idea.
spendStatestringHow freely money Limits allow spend: free, tight (discretionary Limits halved) or hold (one-way spend stops).

Returns

OutputTypeRequiredDescription
startupStartuprequiredThe Startup.

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 startup = await $.Startup.update({ id: 'startup_l3hr1EnUGY', name: 'Leaseline' })

Startup.delete

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

TypeScript
interface StartupVerbs {
  delete(input: StartupDeleteInput, options?: SB.CallOptions): SB.Call<Startup>
}

Emits Startup.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Startup.

Returns

OutputTypeRequiredDescription
startupStartuprequiredThe Startup.

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 startup = await $.Startup.delete({ id: 'startup_l3hr1EnUGY' })