patch https://app.vwo.com/api/v2/accounts//campaigns/
Request URI for Sub Account
PATCH /accounts/40505/campaigns/15
Request Format
PATCH /accounts/40505/campaigns/15
Update a campaign
WarningNote:
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.
For FullStack campaigns
You can update the projects as follows:
{
"campaigns": {
"projects": [{
"id": 66,
"environments": [{
"id": 1
},
{
"id": 2
}
]
}]
}
}