PUT restapi/personal/notifications/v2

Updates the personal notifications to be read.

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.NotificationUpdateV1
NameDescriptionTypeAdditional 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

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.