---
title: "Upsert Dataset Content"
method: PUT
path: "/datasets/{dataset_id}/content"
tags: ["datasets"]
---

# Upsert Dataset Content

`PUT /datasets/{dataset_id}/content`

Rollback the content of a dataset to a previous version.

## Path parameters

- `dataset_id` string, uuid4, required

## Request body

- union
  - RollbackRequest
    - `rollback_version` integer, required
  - UpsertDatasetContentRequest
    - `dataset_id` string, uuid4, required — The ID of the dataset to copy content from.
    - `version_index` integer, nullable — The version index of the dataset to copy content from. If not provided, the content will be copied from the latest version of the dataset.

## Response `204`

Dataset content upserted successfully

## Other responses

- `404` — Dataset not found
- `422` — Validation error in request body
- `423` — Resource lock could not be acquired; another update may be in progress

## Changes

- **2026-07-26** `05003e7835a2` — 1 info
  - the endpoint scheme security `ClassicAPIKeyHeader` was added to the API

[Change history](https://skmtc.dev/galileo/apis/galileo-api-server/changes/datasets/:dataset_id/content/put.md)

---

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