Skip to content

Mandate methods: update, delete

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

Reference for Mandate, one group of Mandate methods.

Mandate.update

Changes the given properties of a Mandate. Verb page.

TypeScript
interface MandateVerbs {
  update(input: MandateUpdateInput, options?: SB.CallOptions): SB.Call<Mandate>
}

Emits Mandate.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Mandate.
expiresAtdatetimeWhen it lapses.
limitLimitThe Limit that bounds it.
verbstringThe Verb it covers, as Noun.verb.
topicsstring[]What it may act on; an Action outside them becomes an Approval.
channelslist of ChannelThe Channels it may send through.

Returns

OutputTypeRequiredDescription
mandateMandaterequiredThe Mandate.

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 mandate = await $.Mandate.update({ id: 'mandate_mKKPrmFQYD', expiresAt: '2026-10-22T12:00:00Z' })

Mandate.delete

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

TypeScript
interface MandateVerbs {
  delete(input: MandateDeleteInput, options?: SB.CallOptions): SB.Call<Mandate>
}

Emits Mandate.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Mandate.

Returns

OutputTypeRequiredDescription
mandateMandaterequiredThe Mandate.

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 mandate = await $.Mandate.delete({ id: 'mandate_mKKPrmFQYD' })