Skip to main content
PUT

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required

The project's friendly ID (e.g. prj_aBcD1234eFgH5678).

event_id
string
required

The event's friendly ID (e.g. evt_aBcD1234eFgH5678).

slug
string
required

Data point type slug on the event's event type (e.g. ambient-temperature-c). A slug the event type doesn't define returns 422.

Body

application/json
value
required

The corrected value, a number, string or boolean matching the data point type. Required; a null value returns 400.

method
string
default:manual_entry

How the value was arrived at, recorded on the correction and shown in the audit trail. Free text. It also decides whether a repeat call is a replay.

notes
string

Free-text justification stored with the correction.

expect
enum<string>

Optional guard on the state you believe the data point is in. gap requires that it is currently empty, and existing that it already has a value. A mismatch returns 422 and writes nothing. Because this endpoint creates the data point when the slug has no value yet, existing is the guard that stops a wrong slug or event ID from silently creating data. It only tests empty against non-empty, so it won't detect a value that changed from one number to another.

Available options:
gap,
existing

Response

Replay of the latest correction; nothing was written.

One entry in a data point's correction history.

id
string

Correction friendly ID (sub_...).

data_point_id
string

Friendly ID of the corrected data point.

stage
enum<string>

ingestion corrections change the data point's value, which every model and report reads; this API writes only these. value_stream corrections override the value for one value stream and leave the shared value untouched.

Available options:
ingestion,
value_stream
source
enum<string>

Where the correction came from. Corrections written through this API are api.

Available options:
api,
transformation,
rule,
manual
method
string

How the value was arrived at. On a correction written through this API it is the method the caller sent, or manual_entry when none was sent. A data rule's correction carries the substitution method that resolved it, and a revert carries revert.

origin
enum<string>

substituted changed an existing value. imputed set a value where none was recorded; the two are kept apart because program substitution thresholds count them differently. reverted restored the original value.

Available options:
substituted,
imputed,
reverted
from_value

The value before this entry. Null when no value existed.

to_value

The value after this entry. Null only on a revert of an imputed value, which restores the empty slot.

notes
string | null

Free-text justification sent with the correction.

rule
object | null

The data rule that wrote this correction. Null for manual and API corrections.

created_by
string | null

Name of the user the correction is attributed to. Null on a correction a data rule wrote on its own, or one written with an API token that isn't associated with a user.

created_at
string<date-time>