POST /v1/dataset
Overview
Create a new dataset in LiveStories and upload the corresponding .csv
file.
This operation needs to be signed for authentication.
Parameters
Example Request
POST /v1/dataset
Content-Type: multipart/form-data; boundary=------------------------0713882d03f2c1fc
------------------------0713882d03f2c1fc
Content-Disposition: form-data; name="collection"
Content-Type: application/json
{ "name": "A test dataset", "properties": { "description": "A cool description" }, "visibility": "public" }
------------------------0713882d03f2c1fc
Conten-Disposition: form-data; name="dataset", filename="data.csv"
Content-Type: text/csv
csv,contents,go,here
------------------------0713882d03f2c1fc
Example Response
{
"id":"a825bee6-0be7-48d8-8504-305f30354928",
"name":"A test dataset",
"version":"92961327-d464-457b-9e03-6b8a314c9a96",
"properties": { "description": "A cool description"},
"owner":"bar",
"team":"foo",
"visibility":"public",
"source":"/tmp/a825bee6-0be7-48d8-8504-305f30354928/data.csv.gz"
}