Skip to content

System methods: update, delete

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

Reference for System, one group of System methods.

System.update

Changes the given properties of a System. Verb page.

TypeScript
interface SystemVerbs {
  update(input: SystemUpdateInput, options?: SB.CallOptions): SB.Call<System>
}

Emits System.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the System.
jobstringThe one job it does.

Returns

OutputTypeRequiredDescription
systemSystemrequiredThe System.

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 system = await $.System.update({ id: 'system_uGWze2jvrp', job: 'Example job' })

System.delete

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

TypeScript
interface SystemVerbs {
  delete(input: SystemDeleteInput, options?: SB.CallOptions): SB.Call<System>
}

Emits System.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the System.

Returns

OutputTypeRequiredDescription
systemSystemrequiredThe System.

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 system = await $.System.delete({ id: 'system_uGWze2jvrp' })