This method can only be applied to mailings of type REGULAR
Update the current 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.

Attributes

Parameter Default Description
date The SQL conform date of the schedule day in the format YYYY-MM-DD
hour 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
404 Not found in case there is no schedule set for this particular mailing
405 Method not allowed if the mailing has already been sent out (sealed)

Example