Activity Stream POST
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 9, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

The following POSTs a very simple event to a given users event stream.

POST content



 {

"generator": {

"image": {"url": "/homepage/nav/common/images/iconProfiles16.png"},

"id": "demoapp",

"displayName": "Demo Application",

"url": "http://www.ibm.com/"

},

  "actor": {

  "id": "@self"

  },

  "verb": "post"

, "title": "You have created an event !",

  "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/"

  }

}



Notes:
  • You don't need the generator, but using it is a best practice.
  • The image in the generator can be used, but it's recommended you should use your own image.
  • The content property is displayed literally this will change for the product release. See the data model description elsewhere in the documentation.
  • If you only see one event in the stream, only the last event is shown for any given object. If you change the object ID more events will be shown.