api update in demo