Community articleActivity Stream POST with File
Added by IBM contributorIBM | Edited by IBM contributordeveloperWorks Lotus Team on July 7, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.

Overview


IBM Connections recognizes objects of type file and allows you to provide specific information for displaying them

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 a file related event !",
  "content": "<b>You</b> have created a file related <i>event</i>",
  "updated": "2012-01-01T12:00:00.000Z",
  "object": {
    "summary": "A relatively unimportant notice",
    "objectType": "file",
    "image": {"url": "http://www.ibm.com/smarterplanet/global/images/us__en_us__general__decade_of_smart_icon__170x110.jpg"},
    "id": "note1",
    "displayName": "IBMPicture.gif",
    "url": "http://www.ibm.com/"
  }
}



Notes:
  • File type and the image reference were added
  • There is no check made on the relationship between the displayName and the URL. The event provider is required to check on the relationship.