Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. Toberd
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    Toberd

    @Toberd

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Toberd Unfollow Follow

    Latest posts made by Toberd

    • Personengruppen-Zuweisung über API

      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

      posted in Entwicklung
      T
      Toberd