Skip to content

Role methods: update, delete

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

Reference for Role, one group of Role methods.

Role.update

Changes the given properties of a Role. Verb page.

TypeScript
interface RoleVerbs {
  update(input: RoleUpdateInput, options?: SB.CallOptions): SB.Call<Role>
}

Emits Role.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Role.
namestringThe title of the seat.
responsibilitiestextThe work the seat owns.
approvalsjsonWhat waits for the founder: rules by action class (spend, sign, publish, price, send), each optionally above an amount in USD.

Returns

OutputTypeRequiredDescription
roleRolerequiredThe Role.

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 role = await $.Role.update({ id: 'role_oloMFMUeCH', name: 'Leaseline' })

Role.delete

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

TypeScript
interface RoleVerbs {
  delete(input: RoleDeleteInput, options?: SB.CallOptions): SB.Call<Role>
}

Emits Role.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Role.

Returns

OutputTypeRequiredDescription
roleRolerequiredThe Role.

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 role = await $.Role.delete({ id: 'role_oloMFMUeCH' })