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
1234die objectID der Person und5678die 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.1Danke und viele Grüße
Tobias -
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
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