Rocket.chat: Provide /api/v1/channels.setRetention method

Created on 4 Aug 2020  路  3Comments  路  Source: RocketChat/Rocket.Chat

Description:

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"
...

Steps to reproduce:

  1. Go to https://docs.rocket.chat/api/rest-api/methods/channels
  2. Try to find a way of updating retention settings via API

Expected behavior:

A means to perform the update via API

Actual behavior:

None

Server Setup Information:

  • Version of Rocket.Chat Server: 3.4.2
  • Operating System: linux
  • Deployment Method: docker
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:

Client Setup Information

  • Desktop App or Browser Version:
  • Operating System:

Additional context

None

Relevant logs:

None

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.

All 3 comments

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 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sta-szek picture sta-szek  路  3Comments

brendanheywood picture brendanheywood  路  3Comments

royalaid picture royalaid  路  3Comments

djeber picture djeber  路  3Comments

marceloschmidt picture marceloschmidt  路  3Comments