Update rest api