public ArrayList < OvhCreationRule > rules_POST ( OvhCreationRulesActionEnum action , String address , String area , String birthCity , String birthDay , String city , String companyNationalIdentificationNumber , String corporationType , OvhCountryEnum country , String email , String fax , String firstname , OvhLanguageEnum language , OvhLegalFormEnum legalform , String name , String nationalIdentificationNumber , String organisation , OvhOvhCompanyEnum ovhCompany , OvhOvhSubsidiaryEnum ovhSubsidiary , String phone , OvhCountryEnum phoneCountry , OvhGenderEnum sex , String spareEmail , String vat , String zip ) throws IOException { String qPath = "/newAccount/rules" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "action" , action ) ; addBody ( o , "address" , address ) ; addBody ( o , "area" , area ) ; addBody ( o , "birthCity" , birthCity ) ; addBody ( o , "birthDay" , birthDay ) ; addBody ( o , "city" , city ) ; addBody ( o , "companyNationalIdentificationNumber" , companyNationalIdentificationNumber ) ; addBody ( o , "corporationType" , corporationType ) ; addBody ( o , "country" , country ) ; addBody ( o , "email" , email ) ; addBody ( o , "fax" , fax ) ; addBody ( o , "firstname" , firstname ) ; addBody ( o , "language" , language ) ; addBody ( o , "legalform" , legalform ) ; addBody ( o , "name" , name ) ; addBody ( o , "nationalIdentificationNumber" , nationalIdentificationNumber ) ; addBody ( o , "organisation" , organisation ) ; addBody ( o , "ovhCompany" , ovhCompany ) ; addBody ( o , "ovhSubsidiary" , ovhSubsidiary ) ; addBody ( o , "phone" , phone ) ; addBody ( o , "phoneCountry" , phoneCountry ) ; addBody ( o , "sex" , sex ) ; addBody ( o , "spareEmail" , spareEmail ) ; addBody ( o , "vat" , vat ) ; addBody ( o , "zip" , zip ) ; String resp = execN ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , t4 ) ; }
Give all the rules to follow in order to create and update an OVH identifier