This method can only be applied to mailings of type REGULAR
Create a new scheduling for a given mailing, using the given date. Make sure this method is called at the end of your script. If changing content after setting/updating the schedule, the mail will not be sent.


Parameter Description
date The SQL conform date of the schedule day in the format YYYY-MM-DD
hours The schedule hour in the format of HH, 24 hours format
minutes The schedule minutes in the format MM

Response Codes

HTTP status code Description
200 OK if there is a schedule set for this mailing and it was removed
400 Bad Request if the request was invalid: planned date is already in the past or planned date is not a date
405 Mathod not allowed if the mailing has already been sent out (sealed)
409 Conflict if the mailing already has an associated schedule