diff --git a/includes/Rest/Users.php b/includes/Rest/Users.php index b8a6c62..c7341e9 100644 --- a/includes/Rest/Users.php +++ b/includes/Rest/Users.php @@ -102,7 +102,7 @@ public function update( $request ) { if ( $access_token ) { wemail()->api->set_api_key( $access_token[0] ); foreach ( $users as $user ) { - $response = wemail()->api->auth()->users()->move()->post( + $response = wemail()->api->teamUsers()->update()->put( [ 'email' => $user, 'role' => $role,