patch https://app.vwo.com/api/v2/accounts//campaigns/
Request URI for Sub Account
PATCH /accounts/40505/campaigns/15
Request Format
{
"campaigns" : {
"name" : "New name",
"globalCode":{
"js": {
"pre": "console.log(\"Pre JS\");",
"post": "console.log(\"Post JS\");"
},
"css": "body {display: block;}"
}
}
}
Update a campaign
Note:
The "globalCode" section allows you to add Pre/Post-Campaign JS/CSS snippets within the editor. This globalCode block is optional and can be omitted if not needed.