updating graph using restful service