V3 REFERENCE Campaigns

newsletter/:id/schedule

An action to schedule a newsletters.

Return the date for the scheduled sending of the newsletter


curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/newsletter/:id/schedule

    
    
Properties
Name Description
Date Timestamp for the sending date. Use "Now" to send immediately
  • Mandatory
  • [ Type TRFC3339DateTime ]

Schedule when the newsletter will be sent


curl -s -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/newsletter/:id/schedule \
-H 'Content-Type: application/json' \
-d '{"Date": ...}'
Properties
Name Description
Date Timestamp for the sending date. Use "Now" to send immediately
  • Mandatory
  • [ Type TRFC3339DateTime ]

Update the date when the newsletter will be sent


curl -s -X PUT \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/newsletter/:id/schedule \
-H 'Content-Type: application/json' \
-d '{"Date": ...}'

    
# update the content, using the value of the  property
# note: all keys marked as 'unique' may be used as an alternate ID

curl -s -X PUT \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/newsletter/:id/schedule \
-H 'Content-Type: application/json' \
-d '{"Date": ...}'
    
Properties
Name Description
Date Timestamp for the sending date. Use "Now" to send immediately
  • Mandatory
  • [ Type TRFC3339DateTime ]

Cancel a future sending


curl -s -X DELETE \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/newsletter
    
# delete the resource using the alternate unique key 
# note: all keys marked as 'unique' may be used as an alternate ID

curl -s -X DELETE \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/newsletter/:id/schedule