MessageUpdatecampaign Method - POST

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 ID
callback (String, optional)
Description: Callback URL. Required only if edition_type is specified and is [ulight]
Description: [default]: show the footer; [none]: hide the footer
from (String, optional)
Description: Filter on Sender email
from_name (String, optional)
Description: Sender name
lang (String, optional)
Description: en, fr, de, it, es, nl
list_id (Integer, optional)
Description: Mailjet's List ID
Description: [default]: show the permalink; [none]: hide the permalink
reply_to (String, optional)
Description: Replace the default 'reply-to' address, which is the sender email
sending_date (Timestamp, optional)
Description: If specified, the campaign will be sent at this date
status (String, optional)
Description: [draft]; [archived];
subject (String, optional)
Description: Email's subject
template_id (Timezone, optional)
Description: Mailjet's template ID
title (String, optional)
Description: Used in Mailjet's interface, to replace the subject. Private data only

Return

status (String)
Description: Status of the response