Skip to content

Process methods: update, delete

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

Reference for Process, one group of Process methods.

Process.update

Changes the given properties of a Process. Verb page.

TypeScript
interface ProcessVerbs {
  update(input: ProcessUpdateInput, options?: SB.CallOptions): SB.Call<Process>
}

Emits Process.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Process.
namestringThe name in sentence case, such as Month-end close.
saystext[]What a founder says to run, turn on, or ask about it.
settingsjsonThe Settings it reads: key, type, default, the founder’s sentence and the Verb that sets each.
defaultOnstring[]The Product Templates it is on in by default.
wakesjsonThe Events that wake it in the Startup’s own records.
inputsstring[]The Nouns an Action reads at its start.
outputsstring[]The Nouns a finished Action leaves behind, rolled up from its Workflows.
outcometextWhat a finished Action leaves true, in one sentence.
serviceLeveljsonIts target duration, clock, escalation Role, and the waits that stop the clock.
scopestringWhere it runs: startup, studio, or any.

Returns

OutputTypeRequiredDescription
processProcessrequiredThe Process.

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 process = await $.Process.update({ id: 'process_X2zteZ3CQI', name: 'Leaseline' })

Process.delete

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

TypeScript
interface ProcessVerbs {
  delete(input: ProcessDeleteInput, options?: SB.CallOptions): SB.Call<Process>
}

Emits Process.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Process.

Returns

OutputTypeRequiredDescription
processProcessrequiredThe Process.

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 process = await $.Process.delete({ id: 'process_X2zteZ3CQI' })