Reschedule email
Reschedule email with new date
PUT https://simplemail-nodejs.herokuapp.com/reschedule-email/:rescheduleID
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
send_at*
String
The datetime you want the email get sent. Make sure the provided value is less or equal than 7 days.
eg: "2021-11-26 23:59"
*This function is not very stable since the server is hosting at Heroku with hobby plan, it may not work due to the idle stuff
{
"msg": "Reschedule email to <<NEW_DATE>> successfully."
}{
"msg": "Unable to reschedule email."
}{
"msg": "[send_at] is more than 7 days (has gap in days as: <<GAP_IN_DAYS>>), please make sure you provide date that has less or equal than 7 days."
}{
"msg": "[send_at] is invalid"
}{
"msg": "[send_at] is outdated."
}// If rescheduleID is not in URL
{
"msg": "Invalid Job ID Error: Job ID not found in request parameter."
}
// If no matched result is found
{
"msg": "Invalid Job ID Error: Cannot find matched result with this ID."
}Last updated