---
title: "Re-point production at an older version (deprecated)"
method: POST
path: "/v1/artifacts/{id}/rollback"
tags: ["Artifacts"]
deprecated: true
---

# Re-point production at an older version (deprecated)

`POST /v1/artifacts/{id}/rollback`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/artifacts/{id}/rollback`
- Auth: HTTP bearer

> **Deprecated.**

Deprecated: use `POST /v1/artifacts/{id}/versions/{no}/restore`, which creates a new version with the old files and keeps the history. This endpoint only moves the production pointer and creates no version. Responses carry a `Deprecation` header. Editor or owner.

## Request body

- object
  - `version_no` integer
  - `version_id` string

## Response `200`

Production now serves that version

- object
  - `success` boolean
  - `deployed_version` integer
  - `version_id` string

## Other responses

- `403`: Access denied
- `404`: Resource not found
- `409`: No production deployment to roll back

## Changes

- **2026-10-16** `46103f506fca`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/artifacts/:id/rollback/post.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
