Added ability to percolate an existing document to the rest api"