---
title: "Upload new dataset version"
method: POST
path: "/datasets/{datasetId}/upload"
tags: ["datasets"]
---

# Upload new dataset version

`POST /datasets/{datasetId}/upload`

Uploads the CSV or TSV content to create a new version of the dataset identified by the given `datasetId`.

## Path parameters

- `datasetId` string, required

## Query parameters

- `workspaceId` integer
- `header` boolean

## Response `200`

OK

- UploadDatasetVersionResponse
  - `version` DatasetVersionDbDto
    - `datasetId` string
    - `datasetName` string
    - `datasetDescription` string
    - `hasHeader` boolean
    - `version` integer
    - `lastUpdated` string, date-time
    - `fileName` string
    - `mediaType` string
    - `url` string

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/d86e2935c8e2/schema)
