# unrelease

Unrelease the current version of a dataset, e.g., to fix an error. Only the current version can be unreleased, and the unrelease window is limited to 7 days.

## HTTP Request

```http
POST /api/v1/datasets/:datasetReference/versions/current/unrelease
```

## Path parameters

| Parameter        |                                                                                                                                             |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| datasetReference | A qualified reference to the dataset. See [referencing resources](https://docs.redivis.com/api/referencing-resources) for more information. |

{% hint style="info" %}
This endpoint extends the [general API structure](https://docs.redivis.com/api/rest-api/general-structure)
{% endhint %}

## Authorization

Edit access to the dataset is required. Your access token must have the following scope:

* data.edit

[Learn more about authorization.](https://docs.redivis.com/api/rest-api/authorization)

## Request body

No request body should be provided.

## Response body

Returns a JSON representation of a [version.get resource](https://docs.redivis.com/api/resource-definitions/version).
