fix post api store and update