Added api rebuild