Skip to main content
PUT
/
v1
/
periodic-emission-logs
/
{id}
/
data-points
/
{config_id}
Update a single data point
curl --request PUT \
  --url https://api.cula.tech/tracking/v1/v1/periodic-emission-logs/{id}/data-points/{config_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input_value": {
    "value": 2650000,
    "unit": "kWh"
  }
}
'
{
  "id": "eml_01kqzcjrpyf27tgebyhvvmf20z",
  "config_id": "elc_01kqzcjrpyf27tgekeyq3qzm7d",
  "site": {
    "id": "<string>",
    "external_id": "<string>"
  },
  "period_start": "2025-10-01T00:00:00.000Z",
  "period_end": "2025-10-31T00:00:00.000Z",
  "status": "completed",
  "data_points": [
    {
      "config_id": "dpc_01kqzcjrpyf27tgeq6a84z0yhy",
      "config_version_id": "dpv_01kqzcjrpyf27tgerf3nqreg37",
      "name": "Weight net",
      "input_value": {
        "value": 47079.76,
        "unit": "lb"
      },
      "value": {
        "value": 21353.12,
        "unit": "kg"
      }
    }
  ],
  "file_ids": [],
  "created_at": "2026-05-06T19:34:00Z",
  "updated_at": "2026-05-06T19:34:00Z",
  "external_id": "GC-ELEC-2025-10",
  "display_key": "GC-ELEC-2025-10",
  "emissions_in_kg_co2e": 8942.37
}

Documentation Index

Fetch the complete documentation index at: https://docs.cula.tech/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Keys are scoped to one organisation and a set of permitted sites. Two keys per scope (primary + secondary) are issued to support zero-downtime rotation.

Authorization: Bearer <api-key>

Path Parameters

id
string
required

Cula-assigned resource ID in TypeID format (e.g. stp_01kqzcjrpxf27tge33jwvjhkff). Alternatively, pass your external ID prefixed with ext- (e.g. ext-MY-STEP-001). The ext- prefix is unambiguous because TypeIDs use _ separators and never start with ext-.

config_id
string
required

Root data point config ID. Discover available config IDs through the parent resource's config version endpoint.

Body

application/json
input_value
required

The value of a data point. The accepted type depends on the data point config's type:

Config typeValue typeExample
short_text, long_textstring"George"
multi_textstring[]["wind", "solar"]
number, percentage, durationnumber15.7
booleanbooleantrue
amountAmount object{ "value": 840.71, "unit": "bushel" }
timestampstring (ISO-8601)"2026-03-15T09:00:00Z"
material_id, container_type_idResourceRef{ "id": "mat_..." } or { "external_id": "corn-no2" }

Response

Data point updated. Returns the full periodic emission log. Recalculation triggered.

A periodic emission log as returned in responses. After creation, the server triggers a background emission calculation. The status field reflects the calculation state and emissions_in_kg_co2e contains the result once calculation completes.

id
string
required

Cula-assigned TypeID.

Example:

"eml_01kqzcjrpyf27tgebyhvvmf20z"

config_id
string
required

Root emission log config ID.

Example:

"elc_01kqzcjrpyf27tgekeyq3qzm7d"

site
object
required

A resolved resource reference as returned in responses.

period_start
string<date>
required

Start of the measurement period.

Example:

"2025-10-01T00:00:00.000Z"

period_end
string<date>
required

End of the measurement period.

Example:

"2025-10-31T00:00:00.000Z"

status
enum<string>
required

State of the background emission calculation.

  • calculating — calculation is in progress.
  • completed — calculation finished, emissions_in_kg_co2e is populated.
  • failed — calculation failed (contact support).
Available options:
calculating,
completed,
failed
Example:

"completed"

data_points
object[]
required

Resolved emission measurement data points.

file_ids
string[]
required

IDs of linked files.

Example:
[]
created_at
string<date-time>
required
read-only
Example:

"2026-05-06T19:34:00Z"

updated_at
string<date-time>
required
read-only
Example:

"2026-05-06T19:34:00Z"

external_id
string | null

Partner-assigned external identifier.

Example:

"GC-ELEC-2025-10"

display_key
string | null

Human-readable display identifier.

Example:

"GC-ELEC-2025-10"

emissions_in_kg_co2e
number | null
read-only

Total emissions for this period in kg CO2 equivalent. Null while status is calculating. Populated once calculation completes.

Example:

8942.37