add update workpace API