curl --request POST \
--url https://api-dev.narrative.io/datasets/{dataset_id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_file": "/2021-12-01/example.csv"
}
'After uploading a file to Narrative via the upload API, you can then have the file can then be ingested into a dataset.
Related guides:
curl --request POST \
--url https://api-dev.narrative.io/datasets/{dataset_id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_file": "/2021-12-01/example.csv"
}
'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for a dataset.
The file to be ingested.
This must be equal to the upload_path passed to the upload API when the file was submitted to Narrative.
OK