---
title: "Replace a Frontend Function route"
method: PUT
path: "/projects/{id}/frontends/{frontendId}/function-routes/{routeId}"
tags: ["Frontends"]
---

# Replace a Frontend Function route

`PUT /projects/{id}/frontends/{frontendId}/function-routes/{routeId}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/frontends/{frontendId}/function-routes/{routeId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Replaces the route's target, path, and prefix handling. The new target must meet the same rules as on create, including `visibility: public`.

## Path parameters

- `id` string, uuid, required
- `frontendId` string, uuid, required
- `routeId` string, uuid, required

## Request body

- CreateFrontendFunctionRouteRequest
  - `function_id` string, uuid, required
  - `path_prefix` string, required
  - `strip_prefix` boolean

## Response `200`

Function route replaced

- FrontendFunctionRoute
  - `id` string, uuid, required
  - `project_id` string, uuid, required
  - `frontend_id` string, uuid, required
  - `function_id` string, uuid, required
  - `path_prefix` string, required
  - `strip_prefix` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid path or non-HTTP Function
- `401`: Unauthorized
- `403`: Project not owned by the caller
- `404`: Function route, Frontend, or Function not found
- `409`: Path is already routed, the Frontend has reached its 64-route limit, or the Function is not public
- `500`: Failed to replace Function route

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/frontends/:frontendId/function-routes/:routeId/put.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
