---
title: "Promote a staging version to production or restore a previous production version."
method: POST
path: "/v1/bulk-redirects/versions"
tags: ["bulk-redirects"]
---

# Promote a staging version to production or restore a previous production version.

`POST /v1/bulk-redirects/versions`

Update a version by promoting staging to production or restoring a previous production version

## Query parameters

- `projectId` string, required
- `teamId` string
- `slug` string

## Request body

- object
  - `id` string, required
  - `action` 'promote' | 'restore' | 'discard', required
  - `name` string

## Response `200`

- object
  - `version` object, required
    - `id` string, required — The unique identifier for the version.
    - `key` string, required — The key of the version. The key may be duplicated across versions if the contents are the same as a different version.
    - `lastModified` number, required
    - `createdBy` string, required
    - `name` string — Optional name for the version. If not provided, defaults to an ISO timestamp string.
    - `isStaging` false | true — Whether this version has not been promoted to production yet and is not serving end users.
    - `isLive` false | true — Whether this version is currently live in production.
    - `redirectCount` number — The number of redirects in this version.
    - `alias` string — The staging link for previewing redirects in this version.

## Other responses

- `400` — One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `404`
- `410`
- `500`

## Changes

> 39 revisions in range; 26 could not be searched.

- **2026-07-21** `2ae10ee9d21c` — 1 info
  - added the non-success response with the status `410`

[Change history](https://skmtc.dev/vercel/apis/api/changes/v1/bulk-redirects/versions/post.md)

---

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