Bug reintroduced? Updating a single-value category via API
-
Hello,
as the original thread is quite old, I'm creating a new one and referencing to the original issue here: Update a single-value category with Api
In that thread, the solution was to update the API add-on from 1.10.4 to 1.11.1, as the bug was apparently fixed there.
However, using the current add-on version 1.12.3, the same problem happens to me. Upon trying to set the primary host of a virtual machine running in a specific cluster, I get the response that the given id does not exist in the dialog table. I have triple-checked that a) the given host is actually a member of the given cluster, b) the id of the cluster is correct, and c) the id of the host is correct:
{ "version": "2.0", "method": "cmdb.category.save", "params": { "object": 100894, "data": { "hosts": 12923, "primary": 13795 }, "category": "C__CATG__VIRTUAL_MACHINE", "apikey": "xxx", "language": "en" }, "id": 6 }
Any suggestions?
Best regards,
Manuel