Funnel
Update Funnel
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.
put/funnels/{id}
Path parameters
idstring required
Query parameters
expand[]string[]
Expand additional data in the response. Use expand[]=field_name to include optional fields. Available fields: head_code, footer_code. See the Expanding guide for examples.
Request body
Example request
{
"funnel": {
"funnel": {
"name": "Example Funnel",
"live_mode": true,
"head_code": "<script>console.log('funnel');</script>",
"head_code_mode": "append"
}
}
}Response
OK
Example response
{
"id": 1,
"public_id": "gESyMv",
"workspace_id": 42000,
"name": "Example Funnel",
"archived": false,
"current_path": "/example-path",
"live_mode": true,
"domain_id": 42,
"favicon_image_id": null,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"public_id": "JgjGTv",
"name": "Example Funnel Tag",
"color": "#00FF00"
}
]
}