DEM
Create a DEM journey variant
Create a variant for a DEM journey.
post/api/v2/dem/journeys/{journey_id}/variants
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.
Path parameters
journey_idstring required
The unique identifier of the journey that owns the variant.
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.