Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 41 Next »

Aggie Feed REST API: POST /api/v1/activity

Headers:

Headers

Comments

Authorization: ApiKey <api key>

Requires API KEY
e.g.
Authorization: ApiKey abcdefgh

 

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"
	}
}}
  • No labels