Batch Request
-
Hi Zusammen,
wie muss man einen Batch Request zusammen bauen?
Irgendwie habe ich dazu keine Beispiele gefunden, kann da jemand weiterhelfen?
Gruß,
Daniel
-
Hi Zusammen,
ich habs raus bekommen...
hier ein Beispiel:
[{ "method": "cmdb.category.read", "params": { "objID": 12345, "category": "C__CATG__CONTACT", "apikey": "*******" }, "version": "2.0", "id": 1 }, { "method": "cmdb.category.read", "params": { "objID": 678910, "category": "C__CATG__CONTACT", "apikey": "*******" }, "version": "2.0", "id": 2 }]wichtig sind die "[" und "]" am Ende. Das als Body String übergeben mit Post gibt des Response zurück.
Wichtig ist auch, das die IDs Eineindeutig sind.
Gruß,
Daniel
-
Hallo @DFARehnitz
du hast es zwar schon selbst herausgefunden aber hier mal ein Link zur Spezifikation von JSON Requests.
Dort siehst du wie ein JSON aufgebaut sein muss.
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