DEM

Update a DEM journey

Update an existing DEM journey by its ID.

put/api/v2/dem/journeys/{journey_id}

Request

Path parameters

journey_idstring required

The unique identifier of the DEM journey to update.

Request body

Example request

{
  "data": {
    "attributes": {
      "description": "Tracks the user checkout flow from cart to confirmation.",
      "journey_rum": {
        "filter": "env:prod",
        "rum_steps": [
          {
            "nodes": [
              {
                "query": "action.name:'checkout'"
              }
            ],
            "type": "start"
          },
          {
            "nodes": [
              {
                "query": "action.name:'confirmation'"
              }
            ],
            "type": "stop"
          }
        ],
        "variants": [
          {
            "name": "Mobile checkout",
            "rum_steps": [
              {
                "nodes": [
                  {
                    "query": "action.name:'checkout'"
                  }
                ],
                "type": "start"
              },
              {
                "nodes": [
                  {
                    "query": "action.name:'confirmation'"
                  }
                ],
                "type": "stop"
              }
            ]
          }
        ]
      },
      "name": "Checkout Flow",
      "tags": [
        "team:synthetics",
        "env:prod"
      ],
      "variants": [
        {
          "name": "Mobile checkout",
          "rum_steps": [
            {
              "nodes": [
                {
                  "query": "action.name:'checkout'"
                }
              ],
              "type": "start"
            },
            {
              "nodes": [
                {
                  "query": "action.name:'confirmation'"
                }
              ],
              "type": "stop"
            }
          ]
        }
      ]
    },
    "type": "journeys"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "created_at": "2024-01-15T10:30:00Z",
      "created_by": {
        "email": "jane.doe@example.com",
        "handle": "jane.doe",
        "name": "Jane Doe",
        "uuid": "00000000-0000-0000-0000-000000000001"
      },
      "description": "Tracks the user checkout flow from cart to confirmation.",
      "journey_rum": {
        "filter": "env:prod",
        "rum_steps": [
          {
            "nodes": [
              {
                "query": "action.name:'checkout'"
              }
            ],
            "type": "start"
          },
          {
            "nodes": [
              {
                "query": "action.name:'confirmation'"
              }
            ],
            "type": "stop"
          }
        ],
        "variants": [
          {
            "name": "Mobile checkout",
            "rum_steps": [
              {
                "nodes": [
                  {
                    "query": "action.name:'checkout'"
                  }
                ],
                "type": "start"
              },
              {
                "nodes": [
                  {
                    "query": "action.name:'confirmation'"
                  }
                ],
                "type": "stop"
              }
            ]
          }
        ]
      },
      "name": "Checkout Flow",
      "org_id": 12345,
      "tags": [
        "team:synthetics",
        "env:prod"
      ],
      "test_suite": {
        "id": "suite-abc123",
        "name": "My Journey Suite"
      },
      "updated_at": "2024-01-16T08:00:00Z",
      "updated_by": {
        "email": "jane.doe@example.com",
        "handle": "jane.doe",
        "name": "Jane Doe",
        "uuid": "00000000-0000-0000-0000-000000000001"
      },
      "variants": [
        {
          "name": "Mobile checkout",
          "rum_steps": [
            {
              "nodes": [
                {
                  "query": "action.name:'checkout'"
                }
              ],
              "type": "start"
            },
            {
              "nodes": [
                {
                  "query": "action.name:'confirmation'"
                }
              ],
              "type": "stop"
            }
          ]
        }
      ]
    },
    "id": "journey-abc123",
    "type": "journeys"
  }
}

Changes

Changes to this operation have not been checked yet.