Post
/phraseex/bandit/campaigns/{campaign_id}
Phrasee X campaigns require initialisation before they can be used with the Phrasee X system. This involves setting a few specific parameters, after which the Phrasee X system will be able to start optimising the campaign.
Security
HTTP
Type bearer
User or account level token in Header, key = 'Authorization', value = 'Bearer '
Path parameters
campaign_id
stringRequired
Campaign Id
Body parameters
Phrasee X campaign information
object
campaign_id
string Required
Example59807ed854b8891947e04303
optimization_start_time
string (date-time) Required
Example2016-03-15T06:08:27.928Z
optimization_end_time
string (date-time) Required
Track metrics until this time
Example2016-03-15T08:08:27.928Z
last_send_time
string (date-time) Required
The last message must be sent by this time
Example2016-03-15T07:08:27.928Z
audience_size
integer Required
Example100254
Responses
200
Bandit test successfully initialised
401
Invalid token
403
Supplied token invalid for specified campaign
404
Campaign could not be found
422
Insufficient or incorrect data to initialise test
500
Unspecified server side error