post
https://app.wingify.com/api/v2/accounts//campaigns
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Request URI for Sub Account
POST /accounts/40505/campaigns
Request Format
{
"type": "ab",
"urls": [
{
"type": "url",
"value": "http://wingify.com"
}
],
"primaryUrl": "http://wingify.com",
"goals": [
{
"name": "New goal",
"type": "visitPage",
"urls": [
{
"type": "url",
"value": "http://wingify.com"
}
]
}
]
}Create a campaign
WarningNote:
If stats are not provided, default value for stats (same as given in this request) are used for the campaign created.
WarningNote:
For split campaign creation, two or more variations must be present in the request with urls for which the split campaign needs to be run.
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.