The channels api currently misses a method to update a channels retention policy. Getting the
retention policy of a channel is already part of the default channel info, as the following response shows
...
"_updatedAt":"2020-08-04T08:03:21.541Z",
"retention":{"enabled":true,"overrideGlobal":true,"maxAge":10,"excludePinned":true},
"description":"elexis-server"
...
A means to perform the update via API
None
None
None
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This functionality is needed for https://github.com/EsupPortail/esup-mod_rocketchat. We are planning to implement such functionality in the Moodle plugin (see https://github.com/EsupPortail/esup-mod_rocketchat/issues/21), but whithout a proper method in the Rocket.Chat API this would be hard.
Agreed, it would be a nice feature to have in the API !
Most helpful comment
This functionality is needed for https://github.com/EsupPortail/esup-mod_rocketchat. We are planning to implement such functionality in the Moodle plugin (see https://github.com/EsupPortail/esup-mod_rocketchat/issues/21), but whithout a proper method in the Rocket.Chat API this would be hard.