JBoss.orgCommunity Documentation
Description: Creates an activity to an identity's activity stream. If no identityid is specified, the activity will be created to the authenticated identity's activity stream.
URL:
http://{domain_name}/{rest_context_name}/private/api/social/v1-alpha3/{portalContainerName}/activity.{format}
Requires Authentication: true
Parameters:
Required (path parameters):
portalContainerName: the associated portal container name
format: the expected returned format
Optional (query paramters):
identity_id: the optional identity stream to post this new activity to
Request:
POST: http://cloud-workspaces.com/rest/private/api/social/v1-alpha3/portal/activity.json
BODY: {"title": "Hello World!!!"}
Response:
{
"id": "1a2b3c4d5e6f7g8h9j",
"title": "Hello World!!!",
"appId": "",
"type": "exosocial:core",
"postedTime": 123456789, //timestamp
"createdAt": "Fri Jun 17 06:42:26 +0000 2011",
"priority": 0.5, //between 0.0 and 1.0, higher value => higher priority.
"templateParams": {},
"titleId": "",
"identityId": "123456789abcdefghi" //the identity id of the user who created this activity
}