Aggie Feed REST API: POST /api/v1/activity
Headers:
Headers | Comments |
---|---|
Authorization: ApiKey <api key> | Requires API KEY |
Full Example:
Authorization: ApiKey abcdefgh HTTP POST https://aggiefeed.ucdavis.edu/api/v1/activity BODY = { "activity" : <activity JSON> }
POST Body:
{ "activity" : { <activity JSON> } }
Activity fields:
Unable to render {include} The included page could not be found.
Sample request body containing the activity (JSON):
{ "activity" : { "icon": "icon-comment-alt", "actor": { "id" : "department identifier", "objectType": "person", "displayName": "Department Name", "author" : { "id" : "kName", "displayName" : "FirstName LastName" } }, "verb": "post", "title": "Test Notification", "object": { "ucdSrcId" : "content identifier", "objectType": "notification", "content": "This is a test notification", "ucdEdusModel" : { "url" : "http://ucdavis.edu", "urlDisplayName" : "UC Davis" } }, "to" : { "groups" : ["students", "faculty"], "users" : [] }, "ucdEdusMeta" : { "labels" : ["~academic", "some-label"], "authzId" : "<Same as actor.author.id>", "startDate" : "date string", "endDate" : "date string" } }}