Invalid run_at datetime. | 400 | run_at is not provided or is not a string |
Invalid run_at datetime #{data[‘run_at’]} | 400 | run_at is not in format yyyy-mm-dd hh:mm |
Invalid notification block | 400 | param notification is not a valid json object |
Invalid notification emails. | 400 | param emails inside param notification is not an array |
Invalid notification email #{email}. | 400 | param emails inside param notification has an invalid email |
Invalid notification http_post block | 400 | param http_post inside param notification is not an array |
Invalid http_post notification format. | 400 | param http_post inside param notification does not have a ‘format’ object |
Format of http post notification can only be json or xml. | 400 | param http_post inside param notification does not have a valid format |
Invalid http post notification url | 400 | param http_post inside param notification does not have a ‘url’ object |
Post notification URL is invalid #{response.code} #{response.message} | 400 | param http_post inside param notification’s ‘url’ did not respond with status 200 |
Post notification URL is invalid #{request_url} | 400 | param http_post inside param notification’s ‘url’ is invalid |
Unable to parse file. | 400 | the command file does not have valid json/xml data (parsing failed) |
No known block is present in the file | 400 | The root object in command file does not contain known models (ex: campaign object is the only object required in command file right now) |
Invalid campaign block. | 400 | Command file’s campaign object is not a valid json object |
Missing contacts data. | 400 | Command file’s campaign object does not contain param ‘contacts’ |
Invalid contacts data. | 400 | Command file’s campaign object’s param ‘contacts’ is not a valid json object |
Invalid contacts data. | 400 | Command file’s campaign object’s param ‘contacts’ does not have ‘files’ parameter provided |
No contact files mentioned. | 400 | Command file’s campaign object’s param ‘contacts’ param’s ‘files’ parameter is an empty array |
No delimiter mentioned for contact file #{contact_file[‘name’]}. | 400 | Command file’s campaign object’s param ‘contacts’ object’s param ‘files’ does not have a ‘delimiter’ |
No file encoding mentioned for contact file #{contact_file[‘name’]}. | 400 | Command file’s campaign object’s param ‘contacts’ object’s param ‘files’ does not have an ‘encoding’ |
Error reading Contact file header #{contact_file[‘name’]}: #{e.message}. | 400 | There was an error reading the header row of the csv contacts file (probably an encoding error) |
Contact file #{contact_file[‘name’]} is missing email header. | 400 | Header column is either not present or is present more than 1 time in contacts.csv |
Contact file missing uploads/maropost/data/#{contact_file[‘name’]}. | 404 | Contacts file not found |
Content missing. | 400 | Command file’s campaign object does not contain param ‘content’ |
Could not find content with id #{campaign_data[‘content’]}. | 400 | If content_id provided in campaign param’s content param does not exist in backend |
Content file missing uploads/maropost/data/#{campaign_data[‘content’]}. | 400 | If html content file’s path provided does not exist at mentioned path |
Missing body tag in html content file. | 400 | If the html provided in html file for content param does not have a body tag |
Content Error: ” + exception message | 400 | If the html in content file is not well formed |
Spam score should be less than #{spam_check_result[:permitted_score]}. | 400 | If content’s spam score exceeds permitted score |
Spam Check Error: ” + exception message | 400 | If spam check fails for some reason |
Campaign save Errors | 400 | Regular validations for campaigns as shown on UI |
Content Save Errors | 400 | Regular validations for contents as shown on UI |
Invalid campaign status: id: #{campaign.id}, status: #{campaign.status} | 400 | If campaign status is not ‘draft’/’sent’ |
Content cannot be blank. | 400 | If an empty string is provided for content param in command file |
send_type value for Transactional Campaign should be default | 400 | If the campaign_status is to send Transactional campaigns and ‘send_type’ is not set to ‘default’. |
Transactional Campaign with ID does not exist. | 400 | If the Campaign ID provided in the command file does not exist as a transactional campaign in the platform. |