Skip to main content
Creating a dataset registers a named container within a repository where you can then upload tabular or time-series data. You must have at least Write permission on the target repository. Once created, upload data to the dataset using PUT /datasets/{id}/data.

Authentication

Authenticate using HTTP Basic Auth. Pass your API key as the username and leave the password empty. You must have Write permission on the target repository.

Request

Method: POST
URL: https://api.alphacast.io/datasets

Body parameters

string
required
The display name for the new dataset. Must be a non-empty string.
integer
required
The numeric ID of the repository in which to create the dataset. You must have Write permission on this repository.
string
A human-readable description of the dataset’s contents, intended audience, or methodology.
string
The URL of the original data source, for provenance tracking.
string
The name of the organization or publication that originally produced this data.

Response

Returns 201 Created with the newly created dataset object.
integer
The numeric ID assigned to the new dataset. Use this in all subsequent requests.
string
The name you provided.
integer
The repository the dataset was created in.
string
The description you provided, or null if omitted.
string
The source name you provided, or null if omitted.
string
The source URL you provided, or null if omitted.
string
Your permission level on the new dataset. Will be Admin for datasets you create.

Example

Error responses

After creating a dataset, use PUT /datasets/{id}/data to upload your first CSV file and populate the dataset with rows.