Skip to content

Implementation methods: update, delete

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

Reference for Implementation, one group of Implementation methods.

Implementation.update

Changes the given properties of an Implementation. Verb page.

TypeScript
interface ImplementationVerbs {
  update(input: ImplementationUpdateInput, options?: SB.CallOptions): SB.Call<Implementation>
}

Emits Implementation.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Implementation.
kindstringOne of managed, custom, or external.
endpointurlFor an external Implementation, where api.sb routes each call.
deliverBydateFor a declared Implementation: when a Function runs the Verb; a missed date refunds every reserve.

Returns

OutputTypeRequiredDescription
implementationImplementationrequiredThe Implementation.

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 implementation = await $.Implementation.update({ id: 'implementation_gnulUgZJ7A', kind: 'managed' })

Implementation.delete

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

TypeScript
interface ImplementationVerbs {
  delete(input: ImplementationDeleteInput, options?: SB.CallOptions): SB.Call<Implementation>
}

Emits Implementation.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Implementation.

Returns

OutputTypeRequiredDescription
implementationImplementationrequiredThe Implementation.

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 implementation = await $.Implementation.delete({ id: 'implementation_gnulUgZJ7A' })