---
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` DatasetVersionDto
    - `datasetId` string
    - `datasetName` string
    - `datasetDescription` string
    - `hasHeader` boolean
    - `version` integer
    - `createdBy` UserInfo
      - `id` integer
      - `userName` string
      - `email` string
      - `avatar` string
    - `dateCreated` string, date-time
    - `lastUpdated` string, date-time
    - `fileName` string
    - `mediaType` string
    - `workspaceId` integer
    - `url` string
    - `disabled` boolean

## Other responses

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

## Changes

> 4 revisions in range; 1 not diffed.

- **2026-01-20** `98d6b538c88e` — 4 info
  - added the optional property `version/createdBy` to the response with the `200` status
  - added the optional property `version/dateCreated` to the response with the `200` status
  - added the optional property `version/disabled` to the response with the `200` status
  - added the optional property `version/workspaceId` to the response with the `200` status

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/datasets/:datasetId/upload/post.md)

---

[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/49c99a6944de/schema)
