Skip to content

Readout programs: update, delete

The Readout Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for Readout, one group of Readout programs.

Readout.update

Changes the given properties of a Readout. Verb page.

Text
do: return await $.Readout.update(input)

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

JSON
{
  "name": "do",
  "arguments": {
    "code": "return 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.

Text
do: return await $.Readout.delete(input)

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

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Readout.delete({ id: 'readout_dlRDxjf2vt' })"
  }
}