POST/orgs/:org/datasets

Create a dataset

Creates a new dataset for the organisation.

Input

URL

Field Type Required Value Description
org string yes

The organisation name.

Body

Field Type Required Value Description
name string yes

The name of the new dataset. Maximum length is 100 characters. Can contain letters, dashes and numbers.

Request

curl -X POST \
     -H "Authorization: token my-org-api-token" \
     -H "Content-Type: application/json" \
     -H "Accept: application/vnd.visii.v2+json" \
     -d '{"name":"my-dataset"}' \
     "https://api.visii.com/orgs/my-org/datasets"

Response

Field Type Required Value Description
status string yes

The status of the response.

dataset_url string yes

The URL of the newly created dataset.

Example

HTTP/1.1 201 Created
{
  "dataset_url": "https://api.visii.com/orgs/my-org/datasets/my-dataset",
  "status": "ok"
}