AssetExplorer

    Update Business CI



    To update a non-asset CI use the following URL format:

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

    Assuming you are updating a non-asset CI in the local server with port number 8080, the URL should be given as:

    http://localhost:8080/api/cmdb/ci


    Keypoints:

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

    2. The operation name "update"  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:  

    • CI-ID of the updated entry is returned along with the CI Name in the response.

    • CI Attributes, Global Attributes and custom CI Attributes for the corresponding CI Type can be updated

    • If the field is non-english, same can be given in the xml to update the data.

    • 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 for updating Business Service

     

    <?xml version="1.0" encoding="UTF-8"?>
    <API version="1.0" >    
        <citype>
            <name>Business Service</name>
            <criterias>
                <criteria>
                    <parameter>
                        <name compOperator="IS">Name</name>
                        <value>Tomcat Server 8</value>
                    </parameter>
                </criteria>
            </criterias>
            <newvalue>
            <record>
                <parameter><name>Site</name><value>Japan</value></parameter>
                <parameter><name>Business Impact</name><value>Low</value></parameter>
                <parameter><name>Description</name><value>Tokyo \ !@#$%^\&lt; &amp; aaa &gt;*\r\nAXL-EXT</value></parameter>
                <parameter><name>Service Support Hours</name><value>12345678</value></parameter>
                <parameter><name>Owned By</name><value>Charles</value></parameter>
                <parameter><name>Cost</name><value>1234</value></parameter>
                <parameter><name>Incident restoration target</name><value>12345</value></parameter>
                <parameter><name>Availability Target(%)-1</name><value>500</value></parameter>
                <parameter><name>Technician</name><value>np</value></parameter>
                <parameter><name>Service Port</name><value>9090</value></parameter>
                <parameter><name>Cost Center</name><value>Finance</value></parameter>            
                <parameter><name>Global Attr</name><value>Finance</value></parameter>            
            </record>
            </newvalue>
        </citype>
    </API>

     


     

    Zoho Corp. All rights reserved.