Skip to main content
POST
/
api
/
infrastructure
/
v1
/
record-baseline-snapshot
RecordBaselineSnapshot
curl --request POST \
  --url https://api.example.com/api/infrastructure/v1/record-baseline-snapshot \
  --header 'Content-Type: application/json' \
  --data '
{
  "updates": [
    {
      "type": "<string>",
      "region": "<string>",
      "count": 123
    }
  ]
}
'
{
  "updated": 123,
  "error": "<string>"
}

Body

application/json

RecordBaselineSnapshotRequest batch-updates baselines using Welford's online algorithm.

updates
object[]

Response

Successful response

RecordBaselineSnapshotResponse reports how many baselines were successfully updated.

updated
integer<int32>

Number of baselines that were written.

error
string

Error message if the request was invalid.