update server with restful api works