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