PUT restapi/personal/notifications/v1
Updates the personal notifications to be read. Obsolete. Use v2 instead.
Updated notifications will be returned.
Notifications where IsRead=false or the person does not have access to, will just be disregarded.
Request Information
URI Parameters
None.
Body Parameters
List of Notifications that should be updated. Since this version only supports IsRead=true, those are the only ones processed.
Collection of Itslearning.RestApi.Entities.Updatable.NotificationUpdateV1Name | Description | Type | Additional information |
---|---|---|---|
NotificationId |
The notification id |
integer |
None. |
IsRead |
Whether the notification has been read or not |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
[ { "NotificationId": 1, "IsRead": true }, { "NotificationId": 1, "IsRead": true } ]
application/xml, text/xml
Sample:
<ArrayOfNotificationUpdateV1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itslearning.RestApi.Entities.Updatable"> <NotificationUpdateV1> <IsRead>true</IsRead> <NotificationId>1</NotificationId> </NotificationUpdateV1> <NotificationUpdateV1> <IsRead>true</IsRead> <NotificationId>1</NotificationId> </NotificationUpdateV1> </ArrayOfNotificationUpdateV1>
application/x-www-form-urlencoded
Sample:
No sample available
Response Information
Resource Description
Updated notifications
EntityListOfItslearning.RestApi.Entities.NotificationName | Description | Type | Additional information |
---|---|---|---|
EntityArray | Collection of Itslearning.RestApi.Entities.Notification |
None. |
|
Total | integer |
None. |
|
CurrentPageIndex | integer |
None. |
|
PageSize | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "EntityArray": [ { "NotificationId": 1, "Text": "sample string 2", "PublishedDate": "2025-06-25T13:21:02Z", "PublishedBy": { "PersonId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "FullName": "sample string 4", "ProfileUrl": "sample string 5", "AdditionalInfo": "sample string 6", "ProfileImageUrl": "sample string 7", "ProfileImageUrlSmall": "sample string 8" }, "Type": "Unknown", "Url": "sample string 4", "ContentUrl": "sample string 5", "IsRead": true, "IsAnonymous": true }, { "NotificationId": 1, "Text": "sample string 2", "PublishedDate": "2025-06-25T13:21:02Z", "PublishedBy": { "PersonId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "FullName": "sample string 4", "ProfileUrl": "sample string 5", "AdditionalInfo": "sample string 6", "ProfileImageUrl": "sample string 7", "ProfileImageUrlSmall": "sample string 8" }, "Type": "Unknown", "Url": "sample string 4", "ContentUrl": "sample string 5", "IsRead": true, "IsAnonymous": true } ], "Total": 1, "CurrentPageIndex": 2, "PageSize": 3 }
application/xml, text/xml
Sample:
<EntityList xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CurrentPageIndex>2</CurrentPageIndex> <EntityArray> <Notification> <ContentUrl>sample string 5</ContentUrl> <IsAnonymous>true</IsAnonymous> <IsRead>true</IsRead> <NotificationId>1</NotificationId> <PublishedBy> <AdditionalInfo>sample string 6</AdditionalInfo> <FirstName>sample string 2</FirstName> <FullName>sample string 4</FullName> <LastName>sample string 3</LastName> <PersonId>1</PersonId> <ProfileImageUrl>sample string 7</ProfileImageUrl> <ProfileImageUrlSmall>sample string 8</ProfileImageUrlSmall> <ProfileUrl>sample string 5</ProfileUrl> </PublishedBy> <PublishedDate>2025-06-25T13:21:02Z</PublishedDate> <Text>sample string 2</Text> <Type>Unknown</Type> <Url>sample string 4</Url> </Notification> <Notification> <ContentUrl>sample string 5</ContentUrl> <IsAnonymous>true</IsAnonymous> <IsRead>true</IsRead> <NotificationId>1</NotificationId> <PublishedBy> <AdditionalInfo>sample string 6</AdditionalInfo> <FirstName>sample string 2</FirstName> <FullName>sample string 4</FullName> <LastName>sample string 3</LastName> <PersonId>1</PersonId> <ProfileImageUrl>sample string 7</ProfileImageUrl> <ProfileImageUrlSmall>sample string 8</ProfileImageUrlSmall> <ProfileUrl>sample string 5</ProfileUrl> </PublishedBy> <PublishedDate>2025-06-25T13:21:02Z</PublishedDate> <Text>sample string 2</Text> <Type>Unknown</Type> <Url>sample string 4</Url> </Notification> </EntityArray> <PageSize>3</PageSize> <Total>1</Total> </EntityList>