How to create multiple objects using webservices in ITOP

I want to create multiple objects of the same class at once. So I won’t need to hit the web services of ITOP again and again.

Another thing is that firstly I need to validate that object exists or not if not exists then create else update the object by using webserives ITOP.

I got some code but don’t know how to run this one Please someone figure it out for me by giving an example.

The code that I got during my search

wget -no-check-certificate \
-header=“Content-Type:application/x-www-form-urlencoded” \
-post-file=organizations.txt \
-O outfile \
https://my.server/itop/webservices/import.php?class=Organization

The content of the organizations.txt file:

auth_user=admin&auth_pwd=secret&simulate=0&separator=;&output=details&loginop=login&csvdata=name;code
orga1;o1
orga2;o2

But I’m not aware how to use this code please some one give me an example.

It’s not code, it’s a linux shell command. Try to run it directly in the terminal. You’ll find usage info if navigate there on your server: https://my.server/itop/webservices/import.php.