v1

latestOpenAPI 3.1.0BSD-32026-07-2471176175.5 KB
telemetry

Replace telemetry records

This endpoint will replace any data within the appropriate stream that matches the supplied properties (timestamp and granularity are minimally required).

A value of 0 is not allowed for the replace operation and is rejected with a 400; use the delete operation to remove a record.

Note: If no existing data matches the supplied properties, the data will be added to the stream.

post/unit-cost/v1/telemetry/allocation/{telemetry_stream_name}/replace

Path parameters

telemetry_stream_namestring required

Update matching telemetry records for an existing telemetry stream.

Headers

Authorizationstring required

Your CloudZero API Key. Note: This is not a bearer token, and should appear in the header as Authorization: <cloudzero-api-key>

Request body

Example request

{
  "records": [
    {
      "value": 16.4,
      "timestamp": "2020-03-03T15:32:44+00:00",
      "element_name": "Adidas"
    }
  ]
}

Response

Telemetry accepted