DEM
Create a DEM journey
Create a DEM journey.
post/api/v2/dem/journeys
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.