update rest api text