---
title: "POST /v2/{+name}:redirectFunctionUpgradeTraffic"
method: POST
path: "/v2/{+name}:redirectFunctionUpgradeTraffic"
tags: ["projects"]
---

# POST /v2/{+name}:redirectFunctionUpgradeTraffic

`POST /v2/{+name}:redirectFunctionUpgradeTraffic`

Changes the traffic target of a function from the original 1st Gen function to the 2nd Gen copy. This is the second step of the multi step process to upgrade 1st Gen functions to 2nd Gen. After this operation, all new traffic will be served by 2nd Gen copy.

## Path parameters

- `name` string, required

## Request body

- RedirectFunctionUpgradeTrafficRequest — Request for the `RedirectFunctionUpgradeTraffic` method.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/cloudfunctions.md) · [All operations](https://skmtc.dev/google/apis/cloudfunctions/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/cloudfunctions/revisions/3063be097e80/schema)
