-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
-
MOODLE_405_STABLE
We try to integrate Moodle in our Dashboard tool for central management. The integration is based on Webservice via REST protocol. We can read all unread notifications of an user via wsfunction core_message_get_messages and parameter useridto, type = notifications and read = 0.
Now we would like to mark this notifications as read with wsfunction core_message_mark_notification_read with given notificationid and no timeread parameter. This results in an error message: Invalid notificationid, you don't have permissions to mark this notification as read
{
|
"exception": "invalid_parameter_exception",
|
"errorcode": "invalidparameter",
|
"message": "Ungültiger Parameterwert",
|
"debuginfo": "Invalid notificationid, you don't have permissions to mark this notification as read"
|
}
|
It seems this is working by design, e.g. https://moodle.org/mod/forum/discuss.php?d=429680.
Is there any chance to enhance this for marking notifications external as read. The reasons should be:
- The webservice has permission to read all notifications
- The webservice can mark ALL notifications as read as once with wsfunction core_message_mark_all_notifications_as_read (passing useridto). Therefore it should also be possible to mark only one as read.
- will help resolve
-
MDL-49501 core_message_mark_message_read
-
- Closed
-