Aggiefeed REST API POST api_v1_activity
Aggiefeed 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:
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" : [
{
"id": "public",
"g": true,
"i": false
],
"ucdEdusMeta" : {
"labels" : ["~academic", "some-label"],
"authzId" : "<Same as actor.author.id>",
"startDate" : "date string",
"endDate" : "date string"
}
}}