Description
This function allow you to edit some values of a campaign.
Request URL
api.mailjet.com/0.1/messageUpdatecampaign
Code Sample
<?php
# Parameters
$params = array(
'method' => 'POST',
'id' => '123',
'subject' => 'Your subject',
'list_id' => '123',
'lang' => 'en',
'from' => 'mail@example.com',
'from_name' => 'Your name',
'footer' => 'default'
);
# Call
$response = $mj->messageUpdateCampaign($params);
?>
Parameters
id (Integer, required)› Description: Mailjet's Campaign IDcallback (String, optional)› Description: Callback URL. Required only if edition_type is specified and is [ulight]› Description: [default]: show the footer; [none]: hide the footerfrom (String, optional)› Description: Filter on Sender emailfrom_name (String, optional)› Description: Sender namelang (String, optional)› Description: en, fr, de, it, es, nllist_id (Integer, optional)› Description: Mailjet's List IDpermalink (String, optional)› Description: [default]: show the permalink; [none]: hide the permalinkreply_to (String, optional)› Description: Replace the default 'reply-to' address, which is the sender emailsending_date (Timestamp, optional)› Description: If specified, the campaign will be sent at this datestatus (String, optional)› Description: [draft]; [archived];subject (String, optional)› Description: Email's subjecttemplate_id (Timezone, optional)› Description: Mailjet's template IDtitle (String, optional)› Description: Used in Mailjet's interface, to replace the subject. Private data only
Return
status (String)
› Description: Status of the response