Update a segment

Using the SDK

from cakemail.models import UpdateSegment

segment = api.segment.update(
    list_id=<list ID>,
    segment_id=<segment ID>,
    update_segment=UpdateSegment(name='<new segment name>')
)
<?php

$segment = $api->segment->update([
    'list_id' => <list ID>,
    'segment_id' => <segment ID>,
    'update_segment' => new \Cakemail\Lib\Model\UpdateSegment([
        'name' => '<new segment name>'
    ])
]);
Language
Authentication
OAuth2
Click Try It! to start a request and see the response here!