DEM

Update a DEM journey variant

Update an existing variant of a DEM journey.

put/api/v2/dem/journeys/variants/{variant_id}

Request

Path parameters

variant_idstring required

The unique identifier of the variant to update.

Request body

Example request

{
  "data": {
    "attributes": {
      "filter": "device.type:mobile",
      "name": "Mobile checkout",
      "rum_steps": [
        {
          "nodes": [
            {
              "query": "action.name:'checkout'"
            }
          ],
          "type": "start"
        },
        {
          "nodes": [
            {
              "query": "action.name:'confirmation'"
            }
          ],
          "type": "stop"
        }
      ]
    },
    "type": "variants"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "filter": "device.type:mobile",
      "name": "Mobile checkout",
      "rum_steps": [
        {
          "nodes": [
            {
              "query": "action.name:'checkout'"
            }
          ],
          "type": "start"
        },
        {
          "nodes": [
            {
              "query": "action.name:'confirmation'"
            }
          ],
          "type": "stop"
        }
      ]
    },
    "id": "variant-001",
    "type": "variants"
  }
}

Changes

Changes to this operation have not been checked yet.