patch https://app.vwo.com/api/v2/accounts//changesets/
Request Format
{
"description": "Cool widget for my application1",
"code": {
"html": "<div> update html</div>",
"js": {
"data": "console.log('updated js')"
},
"css": "body{background-color: grey}"
}
}
Note:
When using the patch API, note that it will overwrite the entire content of the widget. If your request only includes HTML, any existing JavaScript and CSS originally associated with the widget will be replaced. Ensure that all necessary components (HTML, JS, CSS) are included in your request if you wish to retain them.