public function updateLastLogin($id, $successful = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['successful' => $successful], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/' . $id . '/registerloginattempt', $parameters);
        $result = new User($result);

        return $result;
    }