Skip to main content
POST
/
datasets
/
{dataset_id}
/
columns-stats
/
recalculate
Submit recalculation
curl --request POST \
  --url https://api-dev.narrative.io/datasets/{dataset_id}/columns-stats/recalculate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_snapshot": "<string>"
}
'
{
  "recalculation_id": "a81e1460-fbdc-4204-bd76-a9e496bf760d",
  "snapshots": [
    "4396758588236543"
  ],
  "from_snapshot_timestamp": "2023-06-28T19:47:36.604706Z",
  "until_snapshot_timestamp": "2023-06-28T19:47:36.604709Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
integer
required

Unique identifier for a dataset.

Body

application/json
from_snapshot
string

Start of the recalculation range

Response

200 - application/json

OK

snapshots
string[]
required

List of snapshots that should be included into statistics.

recalculation_id
string<uuid>

Unique recalculation id.

from_snapshot_timestamp
string

ISO-8601 timestamp of the first snapshot from the range.

until_snapshot_timestamp
string

ISO-8601 timestamp of the last snapshot from the range.