Create dataset
POST/workspaces/:workspaceId/datasets
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Creates a new dataset in the given workspace context. Include the dataset file and details in your request body.
Request
Path Parameters
workspaceId int64required
Workspace numeric identifier
- application/json
Bodyrequired
Dataset create request
namestring
descriptionstring
Responses
- 200
- 400
- 403
- 409
OK
- application/json
- Schema
- Example (auto)
Schema
dataset object
{
"dataset": {
"id": "string",
"name": "string",
"description": "string",
"mediaType": "string",
"deleted": true,
"dateCreated": "2024-07-29T15:51:28.071Z",
"lastUpdated": "2024-07-29T15:51:28.071Z"
}
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
messagestringrequired
{
"message": "string"
}
Operation not allowed
Duplicate element
- application/json
- Schema
- Example (auto)
Schema
messagestringrequired
{
"message": "string"
}
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: jwt
- python
- curl
- java
- r
- javascript
- go
- powershell
- HTTP.CLIENT
- REQUESTS
import http.client
import json
conn = http.client.HTTPSConnection("docs.seqera.io")
payload = ''
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <token>'
}
conn.request("POST", "/workspaces/:workspaceId/datasets", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))