public void updateInfo ( BoxWebLink . Info info ) { URL url = WEB_LINK_URL_TEMPLATE . build ( this . getAPI ( ) . getBaseURL ( ) , this . getID ( ) ) ; BoxJSONRequest request = new BoxJSONRequest ( this . getAPI ( ) , url , "PUT" ) ; request . setBody ( info . getPendingChanges ( ) ) ; String body = info . getPendingChanges ( ) ; BoxJSONResponse response = ( BoxJSONResponse ) request . send ( ) ; JsonObject jsonObject = JsonObject . readFrom ( response . getJSON ( ) ) ; info . update ( jsonObject ) ; }
Updates the information about this weblink with any info fields that have been modified locally .