AssetExplorer

    Add Asset CI Type


    To add a CI Type, use the following URL format:


    http://<servername>:<portnumber>/api/cmdb/citype/

    Assuming you are adding a new CI Type in the local server with port number 8080, the URL should be given as:


    http://assetexplorer:8080/api/cmdb/citype

     

     

    Keypoints:

    1. Input is an XML string sent as "POST attribute" with key "INPUT_DATA".

    2. The operation name "add"  should be sent as a "POST attribute" with key "OPERATION_NAME".

    3. The technician key should be sent as a "POST attribute" with key "TECHNICIAN_KEY".

    note

    Note:  

      • CIType-ID of the newly added entry is returned along with the CI Type in the response.

      • Technician having SDAdmin role can add CI Type(s).

      • CI Attributes can be added separately

      • Parameter Result Format - Optional. specifies the return format ( XML or JSON )

    If no result format specified then API will return output in JSON format.

     

    Sample Input xml for adding Asset CI Type

    While adding CI Types, if the CI Type being added is asset, this has to be specified using IsAsset tag as specified below:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <API version="1.0" locale="en">
    <records>
        <record>        
            <parameter><name>Name</name><value>Sensors</value></parameter>
            <parameter><name>IsAsset</name><value>True</value></parameter>
            <parameter><name>Type</name><value>Asset</value></parameter>
            <parameter><name>Category</name><value>IT</value></parameter>
            <parameter><name>Parent</name><value>(empty)</value></parameter>        
            <parameter><name>Description</name><value>Added via automation script</value></parameter>        
            <parameter><name>description</name><value>11Added via automation script</value></parameter>        
        </record>
    </records>
    </API>

     

    Zoho Corp. All rights reserved.