Create Funnel
POST
/admin/analytics/funnels
const url = 'http://localhost:9000/admin/analytics/funnels';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","label":"example","description":"example","steps":["example"],"sales_channel_id":"example","is_default":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/analytics/funnels \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "label": "example", "description": "example", "steps": [ "example" ], "sales_channel_id": "example", "is_default": true }'Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
label
required
string
description
string
steps
required
Array<string>
sales_channel_id
string
is_default
boolean
Example generated
{ "name": "example", "label": "example", "description": "example", "steps": [ "example" ], "sales_channel_id": "example", "is_default": true}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}