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

# POST /v2/{+name}:rollbackFunctionUpgradeTraffic

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

Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen.

## Path parameters

- `name` string, required

## Request body

- RollbackFunctionUpgradeTrafficRequest — Request for the `RollbackFunctionUpgradeTraffic` 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)
