code: public static base_responses update(nitro_service client, snmptrap resources[]) throws Exception {
  		base_responses result = null;
  		if (resources != null && resources.length > 0) {
  			snmptrap updateresources[] = new snmptrap[resources.length];
  			for (int i=0;i<resources.length;i++){
  				updateresources[i] = new snmptrap();
  				updateresources[i].trapclass = resources[i].trapclass;
  				updateresources[i].trapdestination = resources[i].trapdestination;
  				updateresources[i].destport = resources[i].destport;
  				updateresources[i].version = resources[i].version;
  				updateresources[i].communityname = resources[i].communityname;
  				updateresources[i].srcip = resources[i].srcip;
  				updateresources[i].severity = resources[i].severity;
  			}
  			result = update_bulk_request(client, updateresources);
  		}
  		return result;
  	}
docs: Use this API to update snmptrap resources.