resource (Experimental)
Last updated
Was this helpful?
Was this helpful?
{
"resources": [
{
"name": "project",
"resourceVariable": "p1",
"method": "create",
"data": {
"name": "Resource loader Project"
}
},
{
"name": "campaign",
"resourceVariable": "c1",
"method": "create",
"data": {
"project_id": "$p1.id",
"name": "Resource loader Campaign",
"description": "Loaded from resource loader",
"type": "ab",
"variation_groups": [
{
"variations": [
{
"name": "Original",
"reference": true,
"allocation": 50,
"modifications": {
"type": "FLAG",
"value": {
"color": "red"
}
}
},
{
"name": "Variation 1",
"reference": false,
"allocation": 50,
"modifications": {
"type": "FLAG",
"value": {
"color": "blue"
}
}
}
],
"targeting": {
"targeting_groups": [
{
"targetings": [
{
"operator": "EQUALS",
"key": "device",
"value": "firefox"
}
]
}
]
}
}
]
}
},
{
"name": "flag",
"resourceVariable": "f1",
"data": {
"name": "flag_created_with_resource_loader",
"type": "string",
"description": "Loaded from resource loaderr",
"source": "manual"
}
},
{
"name": "goal",
"resourceVariable": "g1",
"data": {
"type": "screenview",
"label": "goal_created_with_resource_loader",
"operator": "contains",
"value": "Performance"
}
},
{
"name": "targeting_key",
"resourceVariable": "t1",
"data": {
"type": "string",
"name": "targeting_key_created_with_resource_loader",
"description": "Loaded from resource loader"
}
}
]
}