Skip to main content

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

Bodyrequired

Dataset create request

    namestring
    descriptionstring

Responses

OK

Schema
    dataset object
    idstring

    Possible values: <= 22 characters

    namestringrequired

    Possible values: <= 100 characters, Value must match regular expression ^[a-zA-Z\d](?:[a-zA-Z\d]|[-_](?=[a-zA-Z\d])){1,98}$

    descriptionstring

    Possible values: <= 1000 characters

    mediaTypestring

    Possible values: <= 80 characters

    deletedboolean
    dateCreateddate-time
    lastUpdateddate-time

Authorization: http

name: BearerAuthtype: httpscheme: bearerbearerFormat: jwt
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"))
Request Collapse all
Auth
Parameters
— pathrequired
Body required
{
  "name": "string",
  "description": "string"
}