Update a campaign

Using the SDK

from cakemail.models import PatchCampaign

campaign = api.campaign.update(
    campaign_id=<campaign ID>,
    patch_campaign=PatchCampaign(name='<new campaign name>')
)
<?php

$campaign = $api->campaign->update([
    'campaign_id' => <campaign ID>
    'patch_campaign' => new \Cakemail\Lib\Model\PatchCampaign([
        'name' => '<new campaign name>'
    ])
]);
Language
Authentication
OAuth2
Click Try It! to start a request and see the response here!