Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bug reintroduced? Updating a single-value category via API

    Scheduled Pinned Locked Moved Development
    1 Posts 1 Posters 371 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      manidu
      last edited by manidu

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post