Hi all,
I'm trying to update an inventory field through the API but it is not working. For host fields it's OK, but don't know what's wrong with the inventory JSON petition:
Answer:
Any hints about where's the problem?
Thanks in advance!
I'm trying to update an inventory field through the API but it is not working. For host fields it's OK, but don't know what's wrong with the inventory JSON petition:
Code:
{
"jsonrpc":"2.0",
"method":"host.update",
"params":{
"hostid":"10119",
"inventory":[
{
"software":"version5"
}
]
},
"auth":"feb34b1ec5e7de058f9d5388e02dd045",
"id":1
}
Code:
{
"jsonrpc":"2.0",
"result":{
"hostids":[
"10119"
]
},
"id":1
}
Thanks in advance!
Comment