Skip to main content
POST
/
datasets
/
{dataset_id}
/
upload
Ingest a file
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"
}
'

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
source_file
string
required

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.

Response

200

OK