Skip to content

Create funnel

Request

Create a funnel.

Bodyapplication/vnd.treasuredata.v1+json
idstring[1-9][0-9]*
typestring
Value:"funnel"
attributesobject
relationshipsobject
curl -i -X POST \
  https://api-cdp.treasuredata.com/entities/funnels \
  -H 'Content-Type: application/vnd.treasuredata.v1+json' \
  -d '{
    "id": "string",
    "type": "funnel",
    "attributes": {
      "name": "string",
      "description": "string",
      "stages": [
        {
          "id": "string",
          "segmentId": "string",
          "name": "string",
          "numSyndications": 0
        }
      ]
    },
    "relationships": {
      "parentFolder": {
        "data": {
          "id": "string",
          "type": "folder-segment"
        }
      }
    }
  }'

Responses

Created funnel

Bodyapplication/vnd.treasuredata.v1+json
dataobject(FunnelJsonApiResource)required
includedArray of objects(UserJsonApiResource)required
Response
{ "data": { "id": "string", "type": "funnel", "attributes": {}, "relationships": {} }, "included": [ {} ] }