Put
/campaigns/{campaignid}/variants
Updates language variant records with results of testing. Not all campaign fields are updateable by this endpoint.
Security
HTTP
Type bearer
User or account level token in Header, key = 'Authorization', value = 'Bearer '
Path parameters
campaignid
stringRequired
Campaign ID
Query parameters
auto_approval
booleanRequired
Should we auto approve the campaign
Body parameters
Split test result infromation, only the following properties may be updated
- variant_sent_time
- results_at
- number_of_recipients
- number_of_unsubs
- unsub_rate
- unique_opens
- unique_open_rate
- unique_clicks
- unique_click_rate
- is_winning_line
Array of object
object
language_variant_id
string Required
Example5c07e39e477ca9289615b441
campaign_id
string Required
Example59807ed854b8891947e04303
project_id
string
Example59807ed854b8891947e04303
created_date_time
string (date-time)
Example2016-03-15T06:08:27.928Z
last_updated
string (date-time)
Example2016-03-15T06:08:27.928Z
variant_sent_time
string (date-time)
Example2016-03-15T06:08:27.928Z
results_at
string (date-time)
Example2016-03-15T06:08:27.928Z
is_user_language_variant
boolean
ExampleFalse
text
string Required
ExampleWe thought you'd like this... You can check these Batmobiles off your wish list!
number_of_recipients
number
number of messages sent
Example666
number_of_unsubs
number
Example452
unsub_rate
number
Example55
unique_opens
number
Example56
unique_open_rate
number
Example8.41
unique_clicks
number
Example55
unique_click_rate
number
Example8.26
is_winning_line
boolean
ExampleFalse
status
string
Examplelive
Responses
200
- Split test results successfully input * Results saved, language automatically approved
401
Invalid token
403
- Supplied token invalid for requested campaign - Results not saved because language has not been approved
409
Conflict in split test update
500
A server side error occurred