public ServerGroup updateServerGroupName ( int serverGroupId , String name ) { ServerGroup serverGroup = null ; BasicNameValuePair [ ] params = { new BasicNameValuePair ( "name" , name ) , new BasicNameValuePair ( "profileIdentifier" , this . _profileName ) } ; try { JSONObject response = new JSONObject ( doPost ( BASE_SERVERGROUP + "/" + serverGroupId , params ) ) ; serverGroup = getServerGroupFromJSON ( response ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return null ; } return serverGroup ; }
Update the server group s name