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

    cmdb.category.update in Kontaktzuweisung

    Scheduled Pinned Locked Moved Allgemein
    2 Posts 2 Posters 22 Views
    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.
    • L
      LutzHaseloff
      last edited by

      Hallo,

      ich habe etliche Objekte in i-doit, die in einer der Kontaktzuweisungen eine falsche Rolle eingetragen bekommen haben.
      Jetzt möchte ich in den betreffenden Kontaktzuweisungen den Key "role" auf die richtige id setzen.
      Das versuche ich laut Knowledge Base folgendermaßen:

      {
      "id": 2,
      "version": "2.0",
      "method": "cmdb.category.update",
      "params": {
      "objID": 1430745,
      "category": "C__CATG__CONTACT",
      "data.category_id": 27325,
      "data": { "role": 6 },
      "apikey": "apikey",
      "language": "en"
      }
      }

      Ich bekomme aber jedes Mal nur ein:

      {
      "code": -32099,
      "message": "i-doit system error: Please define the category entry you want to update by setting data.id or data.category_id.",
      "data": null
      }

      zurück.

      Was mache ich falsch?

      Gruß Lutz

      cherifC 1 Reply Last reply Reply Quote 0
      • cherifC
        cherif @LutzHaseloff
        last edited by

        Hallo @LutzHaseloff

        Verwende besser die folgende Methode.
        {

        "method": "cmdb.category.save",
        "params": {
              "object": 1430745,
              "category": "C__CATG__CONTACT",
              "entry": 27325,
              "data": { 
                "role": 6
              }, 
              "apikey": "apikey",
              "language": "en"
            },
        
        
        "id": 2,
        "version": "2.0"
        

        }

        VG, Cherif

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post