YM REST Services

<back to all web services

Notifications

Requires Authentication
Requires any of the roles:member, oauthmember
The following routes are available for this service:
GET/Ams/{ClientID}/Member/{MemberID}/NotificationsReturn a list of notifications for a member.
POST/Ams/{ClientID}/Member/{MemberID}/NotificationsUpdate the notifications status for a member and reset the count flag date.
Notifications Parameters:
NameParameterData TypeRequiredDescription
IdbodyintNo
PageNumberbodyintNo
PageSizebodyintNo
OffsetbodyintNo
MemberBaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
MemberIDformintNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
NotificationsResponse Parameters:
NameParameterData TypeRequiredDescription
NotificationCountformintNo
NotificationListformList<Notification>No
Notification Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
MessageformstringNo
HeadlineformPostHeadlineNo
MemberIdformintNo
PostIdformintNo
HeadshotImageformstringNo
IsReadformboolNo
DateCreatedformDateTimeNo
CategoryformstringNo
ActionTypeformActionTypeNo
NavigateUrlformstringNo
PrimaryIdformintNo
PhotoUrlformstringNo
PhotoUrlLargeformstringNo
PostHeadline Parameters:
NameParameterData TypeRequiredDescription
HeadlineTextformstringNo
HeadlineLinkformList<LinkDetail>No
PhotoformstringNo
PhotoIdformintNo
PhotoOwnerIdformintNo
PostIdformintNo
CommentIdformintNo
PhotoCommentIdformintNo
GroupIdformintNo
LinkDetail Parameters:
NameParameterData TypeRequiredDescription
StartformintNo
EndformintNo
LengthformintNo
UrlformstringNo
MemberIdformintNo
PostIdformintNo
EventIdformintNo
GroupIdformintNo
IsBoldformboolNo
IsLinkformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Ams/{ClientID}/Member/{MemberID}/Notifications HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	PageNumber: 0,
	PageSize: 0,
	Offset: 0,
	MemberID: 0,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T13:43:12.5907838+00:00,
	Device: Desktop
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	NotificationCount: 0,
	NotificationList: 
	[
		{
			Id: 0,
			Message: String,
			Headline: 
			{
				HeadlineText: String,
				HeadlineLink: 
				[
					{
						Start: 0,
						End: 0,
						Length: 0,
						Url: String,
						MemberId: 0,
						PostId: 0,
						EventId: 0,
						GroupId: 0,
						IsBold: False,
						IsLink: False
					}
				],
				Photo: String,
				PhotoId: 0,
				PhotoOwnerId: 0,
				PostId: 0,
				CommentId: 0,
				PhotoCommentId: 0,
				GroupId: 0
			},
			MemberId: 0,
			PostId: 0,
			HeadshotImage: String,
			IsRead: False,
			DateCreated: 0001-01-01,
			Category: String,
			ActionType: None,
			NavigateUrl: String,
			PrimaryId: 0,
			PhotoUrl: String,
			PhotoUrlLarge: String
		}
	],
	Id: 0,
	PageNumber: 0,
	PageSize: 0,
	Offset: 0,
	MemberID: 0,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T13:43:12.6064127+00:00,
	Device: Desktop
}