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

    JSON cmdb.object_type_categories

    Scheduled Pinned Locked Moved Entwicklung
    3 Posts 2 Posters 1.4k 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.
    • T Offline
      tsd
      last edited by

      Hi,
      ich bekomme beim JSON Aufruf der Funktion "cmdb.object_type_categories" folgende Fehlermeldung (Apache Log)

      PHP Fatal error:  Call to a member function get_row() on a non-object in /var/www/src/classes/api/model/cmdb/isys_api_model_cmdb_object_type_categories.class.php on line 138

      Übergebene Paramtere sind:
      "version": "2.0",
      "method": "cmdb.object_type_categories",
      "id": "1",
      "params": {"id":"19",
      "session": {"username": "admin",
      "password": "md5hash",
      "language": "de","mandator": 1
      }}}'

      Hat jemand eine Idee, was da falsch läuft?

      1 Reply Last reply Reply Quote 0
      • LFischerL Offline
        LFischer
        last edited by

        Hallo tsd,

        statt "id" muss es in den Params "type" heißen.
        Der "type" muss eine Objekt-Typ ID aus i-doit sein:

        {
            "version": "2.0",
            "method": "cmdb.object_type_categories",
            "id": "1",
            "params": {
                "type":"19",
                "session": {
                    "username": "admin",
                    "password": "md5hash",
                    "language": "de","mandator": 1
                }
            }
        }
        

        Viele Grüße,
        Leo

        1 Reply Last reply Reply Quote 0
        • T Offline
          tsd
          last edited by

          Danke das war der Fehler!

          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