1 Reply Latest reply on Mar 15, 2016 6:51 AM by shiras

    Batch operations via REST API

    shiras

      Hi,

       

      I'm trying to execute batch operations at the /executeBatch endpoint in order to post stream associations for a user. The JSON is:

       

      [
          {
              "key": "a",
              "request": {
                  "method": "POST",
                  "endpoint": "https://jivedemo-suite-solutions-n.jiveon.com/api/core/v3/streams/136/associations",
                  "body": ["https://jivedemo-suite-solutions-n.jiveon.com/api/core/v3/contents/18866"]
              }
          },
          {
              "key": "b",
              "request": {
                  "method": "POST",
                  "endpoint": "https://jivedemo-suite-solutions-n.jiveon.com/api/core/v3/streams/136/associations",
                  "body": ["https://jivedemo-suite-solutions-n.jiveon.com/api/core/v3/contents/18867"]
              }
          }
      ]
      

       

      I'm getting a 500 internal server error.

       

      I've successfully created a batch of places using the /executeBatch endpoint, however, posting an array of URIs doesn't seem to work.

       

      Am I doing something wrong?

       

      Thanks,

      Shira