Hi,
I am trying to update some attribute in cmdb CI using API. I am not able to update when the server is newly added from scan.
However, if i manually edit the server, simply edit something and save it, then I can update using API as usual.
Appreciate if any idea here.
Thanks.
Here is the xml i am using to update .
<?xml version='1.0' encoding='UTF-8'?>
<API version='1.0' >
<citype>
<name>Linux Server</name>
<criterias>
<criteria>
<parameter>
<name compOperator='IS'>CI Name</name>
<value>cmdb.wh.local</value>
</parameter>
</criteria>
</criterias>
<newvalue>
<record>
<!-- Product Name/Type cannot be updated using Update Operations-->
<!--parameter><name>Product Name</name><value>Unknown Server</value></parameter-->
<parameter>
<name>Patch</name>
<value>4</value>
</parameter>
</record>
</newvalue>
</citype>
</API>
The response error:
{
"API": {"response": {"operation": {"result": {"statuscode": 3001,
"message": "Unknown error.",
"status": "Unknown error."
},
"name": "update"
}
},
"version": 1
}
}