jsonopensocialibm-connectionsibm-sbt

What is the JSON syntax to add tags to a statusupdate in IBM Connections?


I want to post (programmatically) a statusupdate to the activitystream in IBM Connections (4.0). I am looking for the correct place to put this JSON

"tags":[{"objectType":"tag","displayName":"ibms"}],

I have tried this:

{

"actor": {

"id": "@me"

},

"verb": "post",

"title": "${share}",



"content":"This event is my <i>second entry</i> #ibms",

"updated": "2013-01-01T12:00:00.000Z",

"object": {

"summary": "First Entry details #ibms",

"tags":[{"objectType":"tag","displayName":"ibms"}],

"objectType": "note",

"id": "objectid5",

"displayName": "First entry",

}

}

And the entry is posted succesfully, but the tags are not there, I am looking for a sample that correctly posts a note to the activitystream containing tags


Solution

  • I don't think you can add tags to status updates. At least you don't seem to be able to in the Connections UI so I don't see why you would be able to programmatically. I believe you should be using the micro-blogging API to post status updates.