update direct api