curl --request GET \
--url https://api-dev.narrative.io/datasets/{dataset_id}/admin/sample \
--header 'Authorization: Bearer <token>'{
"records": [
{
"idValue": "9a200747-86ea-4ab3-a5c5-ce384e4f93dc",
"idType": "ADID",
"timestamp": "2021-12-10T00:00:00Z"
},
{
"idValue": "6657fa10-4e5f-4ff5-8e46-53ffb1df692f",
"idType": "ADID",
"timestamp": "2021-12-10T00:00:01Z"
}
]
}Get a sample of rows from a dataset as JSON.
curl --request GET \
--url https://api-dev.narrative.io/datasets/{dataset_id}/admin/sample \
--header 'Authorization: Bearer <token>'{
"records": [
{
"idValue": "9a200747-86ea-4ab3-a5c5-ce384e4f93dc",
"idType": "ADID",
"timestamp": "2021-12-10T00:00:00Z"
},
{
"idValue": "6657fa10-4e5f-4ff5-8e46-53ffb1df692f",
"idType": "ADID",
"timestamp": "2021-12-10T00:00:01Z"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for a dataset.
The number of rows to sample from the dataset.
x <= 1000OK
A list of rows from the dataset encoded as JSON objects.