Activity Stream Batch POST using an Array
Added by IBM contributorIBM on March 25, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.

POSTing a simple batch request to the currently Authenticated user


Batch requests differ from typical requests only in that the root element is an array of events rather than a single event.

POST content



 {
  {
    "generator": {
      "id": "demoapp",
    },
    "actor": {
      "id": "@self"
    },
    "verb": "post",
    "title": "You have created an event about first note !",
    "content": "<b>You</b> have created an <i>event</i>",
    "updated": "2012-01-01T12:00:00.000Z",
    "object": {
      "summary": "A relatively unimportant notice",
      "objectType": "note",
      "id": "note1",
      "displayName": "First Note",
      "url": "http://www.ibm.com/firstnote"
    }
  },
  {
    "generator": {
      "id": "demoapp",
    },
    "actor": {
      "id": "@self"
    },
    "verb": "post",
    "title": "You have created an event about second note !",
    "content": "<b>You</b> have created another <i>event</i>",
    "updated": "2012-01-01T12:00:00.000Z",
    "object": {
      "summary": "A relatively unimportant notice",
      "objectType": "note",
      "id": "note2",
      "displayName": "Second Note",
      "url": "http://www.ibm.com/secondnote"
    }
  }
}