viakite
Dashboard

API/Goals and settings/Change a funnel

Change a funnel

PATCH/v1/projects/{project}/funnels/{funnel}

Absent fields stay as they are.

Secret keyus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).
funnelstringrequired
The funnel's id.

Body

namestringup to 100 chars
stepsFunnelStepRule[]2–10 items
One step of a saved funnel.
Show 4 fields
kindstringrequired
A page visit or a custom event.
pageevent
page_pathstringup to 255 chars
event_namestringup to 255 chars
conditionsPropertyCondition[]up to 20 items
Saved with an event step; results match the event on its name only for now.
Show 3 fields
propertystringrequiredup to 255 chars
operatorstringrequired
isis_notcontainsstarts_with
valuestringrequiredup to 255 chars

Responses

The Funnel.

idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
project_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
namestringrequired
stepsFunnelStepRule[]required
One step of a saved funnel.
Show 4 fields
kindstringrequired
A page visit or a custom event.
pageevent
page_pathstringup to 255 chars
event_namestringup to 255 chars
conditionsPropertyCondition[]up to 20 items
Saved with an event step; results match the event on its name only for now.
Show 3 fields
propertystringrequiredup to 255 chars
operatorstringrequired
isis_notcontainsstarts_with
valuestringrequiredup to 255 chars
created_atstring · date-timerequired
A time in UTC, ISO 8601.
updated_atstring · date-timerequired
A time in UTC, ISO 8601.
Example response
1{
2 "id": "fnl_01JD8Q2M4W9XK3T7B5",
3 "project_id": "prj_01JD8Q2M4W9XK3T7B5",
4 "name": "Production",
5 "steps": [
6 {
7 "kind": "page",
8 "page_path": "string",
9 "event_name": "string",
10 "conditions": [
11 {
12 "property": "plan",
13 "operator": "is",
14 "value": "pro"
15 }
16 ]
17 }
18 ],
19 "created_at": "2026-11-21T09:30:00Z",
20 "updated_at": "2026-11-21T09:30:00Z"
21}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
422validation_error
404not_found