Update a user

Using the SDK

from cakemail.models import PatchUser

user = api.user.update(
    user_id=<user ID>,
    patch_user=PatchUser(first_name='<new user first name>')
)
<?php

$user = $api->user->update([
    'user_id' => <user ID>,
    'patch_user' => new \Cakemail\Lib\Model\PatchUser([
        'first_name' => '<new user first name>'
    ])
]);
Language
Authorization
Click Try It! to start a request and see the response here!