---
title: "Update Funnel"
method: PUT
path: "/funnels/{id}"
tags: ["Funnel"]
---

# Update Funnel

`PUT /funnels/{id}`

Update Funnel.

You can use head_code and footer_code parameters to inject custom code. Use head_code_mode and footer_code_mode to control whether code is appended or replaced.

## Path parameters

- `id` string, required

## Query parameters

- `expand[]` string[]

## Request body

- object
  - `funnel` FunnelParametersUpdate — Funnels
    - `name` string — Name of the Funnel
    - `live_mode` boolean — In Live Mode your Funnel cannot be tested and will process live payments
    - `domain_id` integer, nullable — The ID of the domain to associate with this funnel. Set to null to remove the domain association. Use the Domains API to look up available domain IDs.
    - `head_code` string, nullable — Custom code to inject into the funnel's <head> section. Content should be wrapped in appropriate HTML tags such as <script>, <link>, <meta>, or <style>. Set to null to clear existing code.
    - `head_code_mode` 'append' | 'replace' — How to handle head_code. 'append' adds to existing code (default), 'replace' overwrites.
    - `footer_code` string, nullable — Custom code to inject before the closing </body> tag. JavaScript should be wrapped in <script> tags. Set to null to clear existing code.
    - `footer_code_mode` 'append' | 'replace' — How to handle footer_code. 'append' adds to existing code (default), 'replace' overwrites.

## Response `200`

OK

- FunnelAttributes — Funnels
  - `id` integer — Funnel ID
  - `public_id` string — The public identifier of the funnel
  - `workspace_id` integer — The ID of the workspace that the funnel belongs to
  - `name` string — Name of the Funnel
  - `archived` boolean — Archived status
  - `current_path` string — The URL path of the funnel
  - `live_mode` boolean — In Live Mode your Funnel cannot be tested and will process live payments
  - `domain_id` integer, nullable — The ID of the domain associated with this funnel. Use the Domains API to look up available domain IDs.
  - `favicon_image_id` string, nullable — The ID of the image used as the favicon for this funnel
  - `created_at` string, date-time — Created at
  - `updated_at` string, date-time — Updated at
  - `tags` object[] — Funnel Tags
    - `id` integer — ID
    - `public_id` string — Public ID
    - `name` string — The name of the funnel tag
    - `color` string — The color of the funnel tag
  - `head_code` string, nullable — **Expandable** Custom HTML/JavaScript code injected into the funnel head section. Only returned when expand[]=head_code is provided. Note: expanding may add latency, especially on list endpoints. Use sparingly.
  - `footer_code` string, nullable — **Expandable** Custom HTML/JavaScript code injected before the closing body tag. Only returned when expand[]=footer_code is provided. Note: expanding may add latency, especially on list endpoints. Use sparingly.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/myclickfunnels/apis/clickfunnels-api.md) · [All operations](https://skmtc.net/myclickfunnels/apis/clickfunnels-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myclickfunnels/clickfunnels-api/revisions/ae6313eaa176/schema)
