Added restart build api method

Added restart build api method