added api method for updating site