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

    JSON cmdb.object_type_categories

    Scheduled Pinned Locked Moved Entwicklung
    3 Posts 2 Posters 1.3k 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
          • First post
            Last post