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

    Personengruppen-Zuweisung über API

    Scheduled Pinned Locked Moved Entwicklung
    2 Posts 2 Posters 245 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.
    • T Offline
      Toberd
      last edited by

      Hallo,

      ich möchte über die API einen eine Person einer Gruppe zuordnen. Dazu nutze ich folgende API Request:

      {
          "version": "2.0",
          "method": "cmdb.category.save",
          "params": {
              "object": 1234,
              "category": "C__CATS__PERSON_ASSIGNED_GROUPS",
              "data": {
                  "connected_object": [5678]
              },
              "apikey": "xxx",
              "language": "en"
          },
          "id": 1
      }
      

      wobei 1234 die objectID der Person und 5678 die objectID der Personengruppe ist.
      Als Antwort erhalte ich eine Response mit der message "Category entry successfully saved". Tatsächlich wird jedoch als Personengruppe die "Root Location" im Frontend angezeigt, bei einer category.read Anfrage auf die Gruppen dieser Person erhalte ich folgende Response:

      {
          "id": 1,
          "jsonrpc": "2.0",
          "result": [
              {
                  "id": 0,
                  "objID": "1234",
                  "connected_object": null,
                  "role": null,
                  "contact": [
                      []
                  ]
              }
          ]
      }
      

      Mache ich beim Setzen der Kategorie einen Fehler oder ist dieses Problem bekannt?

      i-doit 1.17 PRO
      API 1.12.1

      Danke und viele Grüße
      Tobias

      Selcuk KekecS 1 Reply Last reply Reply Quote 0
      • Selcuk KekecS Offline
        Selcuk Kekec @Toberd
        last edited by

        Hi @Toberd,

        ich konnte das von dir beschriebene Verhalten nachstellen. Das Problem wurde allem Anschein nach mit der 1.18 aber gelöst.

        Viele Grüße

        Selcuk

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