Skip to content

Readout methods: update, delete

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

Reference for Readout, one group of Readout methods.

Readout.update

Changes the given properties of a Readout. Verb page.

TypeScript
interface ReadoutVerbs {
  update(input: ReadoutUpdateInput, options?: SB.CallOptions): SB.Call<Readout>
}

Emits Readout.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Readout.
valuenumberThe Metric’s value for the Variant.
nintegerHow many exposed units it counts.
intervaljsonThe low and high bounds of the estimate.
readabilitystringOne of A, B, C, or inadmissible: how far the number can be trusted.
pooledbooleanTrue when exposures from sibling Startups or earlier Portfolio results are pooled in.

Returns

OutputTypeRequiredDescription
readoutReadoutrequiredThe Readout.

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 readout = await $.Readout.update({ id: 'readout_dlRDxjf2vt', value: 1 })

Readout.delete

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

TypeScript
interface ReadoutVerbs {
  delete(input: ReadoutDeleteInput, options?: SB.CallOptions): SB.Call<Readout>
}

Emits Readout.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Readout.

Returns

OutputTypeRequiredDescription
readoutReadoutrequiredThe Readout.

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 readout = await $.Readout.delete({ id: 'readout_dlRDxjf2vt' })