Skip to main content
PUT
/
datasets
/
{dataset_id}
/
columns-stats
Create or Update detailed statistics
curl --request PUT \
  --url https://api-dev.narrative.io/datasets/{dataset_id}/columns-stats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "records": [
    {
      "column_name": "idType",
      "approx_count_distinct": 2,
      "count_distinct": null,
      "histogram": {
        "values": {
          "adid": {
            "absolute": 2,
            "ratio": 0.5
          },
          "idfa": {
            "absolute": 2,
            "ratio": 0.5
          }
        },
        "number_of_bins": 2
      },
      "mean": null,
      "standard_deviation": null,
      "completeness": null,
      "observed_types": null
    },
    {
      "column_name": "idValue",
      "approx_count_distinct": 20000,
      "count_distinct": null,
      "histogram": null,
      "mean": null,
      "standard_deviation": null,
      "completeness": null,
      "observed_types": null
    }
  ]
}
'
{
  "error": "Unauthorized",
  "error_description": "You are not authorized to use this endpoint."
}

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
records
object[]

Response

OK