Update a sub-account

Using the SDK

from cakemail.models import PatchAccount

sub_account = api.sub_account.update(
    account_id=<account ID>,
    patch_account=PatchAccount(name='<new sub-account name>')
)
<?php

$subAccount = $api->sub_account->update([
    'account_id' => <account ID>,
    'patch_account' => new \Cakemail\Lib\Model\PatchAccount([
        'name' => '<new sub-account name>'
    ])
]);
Language
Authorization
OAuth2
Click Try It! to start a request and see the response here!