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

    Batch Request

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 1.1k 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.
    • D Offline
      DFARehnitz
      last edited by

      Hi Zusammen,

      wie muss man einen Batch Request zusammen bauen?

      Irgendwie habe ich dazu keine Beispiele gefunden, kann da jemand weiterhelfen?

      Gruß,

      Daniel

      1 Reply Last reply Reply Quote 0
      • D Offline
        DFARehnitz
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • Michael HuhnM Offline
          Michael Huhn
          last edited by

          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.

          https://www.jsonrpc.org/specification

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post