V3 REFERENCE Campaigns

campaigndraft/:id/detailcontent

GET, POST are supported to read, create, modify and delete the content of CampaignDraft

Return the text and html contents of the campaigndraft


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

    
    
Properties
Name Description
Text-part The plain text part of the message
  • [ Type AnsiString ]
Html-part The HTML formatted part of the message
  • [ Type AnsiString ]
MJMLContent The newsletter content in MJML
  • [ Type AnsiString ]
Headers list of all main headers as property:value pairs, values override properties such as "subject" if specified
  • [ Type JSONObject ]

Update the text and html contents of the campaigndraft


curl -s -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/campaigndraft/:id/detailcontent \
-H 'Content-Type: application/json' \
-d '{"Text-part": ...}'
Properties
Name Description
Text-part The plain text part of the message
  • [ Type AnsiString ]
Html-part The HTML formatted part of the message
  • [ Type AnsiString ]
MJMLContent The newsletter content in MJML
  • [ Type AnsiString ]
Headers list of all main headers as property:value pairs, values override properties such as "subject" if specified
  • [ Type JSONObject ]