update rest json definition