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 haveWrite permission on the target repository.
Request
Method:POSTURL:
https://api.alphacast.io/datasets
Body parameters
The display name for the new dataset. Must be a non-empty string.
The numeric ID of the repository in which to create the dataset. You must have
Write permission on this repository.A human-readable description of the dataset’s contents, intended audience, or methodology.
The URL of the original data source, for provenance tracking.
The name of the organization or publication that originally produced this data.
Response
Returns201 Created with the newly created dataset object.
The numeric ID assigned to the new dataset. Use this in all subsequent requests.
The name you provided.
The repository the dataset was created in.
The description you provided, or
null if omitted.The source name you provided, or
null if omitted.The source URL you provided, or
null if omitted.Your permission level on the new dataset. Will be
Admin for datasets you create.Example
Error responses
| Status | Cause |
|---|---|
403 Forbidden | The repository does not exist, or you do not have Write permission on it. |
409 Conflict | A dataset with a conflicting configuration already exists. |