Add Child CI Type
To add a CI Type, use the following URL format:
http://<servername>:<portnumber>/api/change/
Assuming you are adding a new CI Type in the local server with port number 8080, the URL should be given as:
http://localhost:8080/api/change/
Keypoints:
-
Input is an XML string sent as "POST attribute" with key "INPUT_DATA".
-
The operation name "add" should be sent as a "POST attribute" with key "OPERATION_NAME".
-
The technician key should be sent as a "POST attribute" with key "TECHNICIAN_KEY".
Note:
If no result format specified then API will return output in JSON format. |
Sample Input for Adding Child CI Type:
While adding CI Types, if the CI Type being added is asset and has a parent, then parent tag should be used instead of IsAsset tag.
<?xml version="1.0" encoding="UTF-8"?>
<API version="1.0" locale="en">
<records>
<record>
<parameter><name>Name</name><value>Thermal Sensors</value></parameter>
<parameter><name>Parent</name><value>Sensors</value></parameter>
<parameter><name>Description</name><value>Adding a child CI Type for Sensor</value></parameter>
</record>
</records>
</API>