---
title: "Edit a project-level redirect."
method: PATCH
path: "/v1/bulk-redirects"
tags: ["bulk-redirects"]
---

# Edit a project-level redirect.

`PATCH /v1/bulk-redirects`

Edits a single redirect identified by its source path. Stages a new change with the modified redirect and returns the alias for the new version in the response.

## Query parameters

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

## Request body

- object
  - `name` string
  - `redirect` object, required — The redirect object to edit. The source field is used to match the redirect to modify.
    - `source` string, required
    - `destination` string
    - `statusCode` number
    - `permanent` boolean
    - `caseSensitive` boolean
    - `query` boolean
    - `preserveQueryParams` boolean
  - `restore` boolean — If true, restores the redirect from the latest production version to staging.

## Response `200`

- object
  - `alias` string, nullable, required
  - `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`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/61d1ba3f6dac/schema)
