Sources API

Source Data Model

ISO-8601 Date format YYYY-MM-DDTHH:mm:ss.SSSZ 

KeyTypeCommentRequired (R) or Optional (O)
activityTypesArray of activityType Objects
[{
	"id": "event",
	"name": "Event",
	"icon": "/content/logos/mondavi.png"
},
{
	"id": "notification",
	"name": "Notification",
	"icon": "/content/logos/mondavi.png"
}]
R
approveByNumberNumber of approvers required for any post that is manually createdR
approversArrayArray of strings, where each entry is the kerberos id of the user granted the ability to approve postsR
canSendToArray

Array of objects, where each entry represents a group that is addressable by this source. e.g.

[
        {
            "id": "public",
            "name": "Public"
        },
        {
            "id": "students",
            "name": "All Students"
        },
        {
            "id": "staff",
            "name": "All Staff"
        },
        {
            "id": "faculty",
            "name": "All Faculty"
        }
]

 

 

R

creators

ArrayArray of strings, where each entry is the kerberos id of the user granted the ability to create postsR
isRequiredBooleanIndicating if a user can unsubscribe from this sourceR
notificationBooleanSend email to approvers if a new posts was created that needs approvalsR
sourceIdStringUUIDR
sourceNameStringUnique source nameR
sourceLabelObject

Default label. One of campus-life, campus-messages, academic, student-life, faculty, staff

{
	"id": "~campus-life",
	"name": "Campus-Life"
}

R
autosubscribeBooleanIndicating if this source is added to a user's subscriptions list by defaultR
connectionsArray

Array of External Connections (i.e. Facebook pages/groups, Campus Calendars, etc.)

NOTE: This is not implemented yet

O
sourceDescriptionStringDescriptions of what the source is about.R
sourceSlugString

This is used by the aggiefeed landing page

e.g. https://aggiefeed.ucdavis.edu/posts/<sourceSlug>

R
sourceOwnerStringSource owner's loginId (kerberos id)R
sourceCreationDateStringISO-8601 Date format YYYY-MM-DDTHH:mm:ss.SSSZ R
sourceStatsObject O
sourceStats.postCountNumberNumber of posts created by sourceO
sourceStats.subscriberCountNumberNumber of users that are subscribed to this sourceO
sourceStats.latestPostCreationDateStringISO-8601 Date format YYYY-MM-DDTHH:mm:ss.SSSZ O

ActivityType

KeyTypeCommentRequired (R) or Optional (O)
idString"event" or "notification"R
nameString"Event" or "Notification"R
iconStringImage location or icon nameR
colorString

If "icon" is an "icon name" then an optional color HEX value can be used.

#82f0ff
O

Connection