summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-11-11 09:19:59 +0100
committerJoas Schilling <coding@schilljs.com>2020-12-08 12:58:48 +0100
commitc5cf6be4a318ccab97f4f65f106cc20ede93a241 (patch)
tree2fb0e4d1f4a9bd83a023dfc13f0caee8d139a745 /appinfo
parentb64f891f964f3b59f50f71af6c9c1a27ef5976ac (diff)
Add endpoint to set the description of a conversation
Only moderators and guest moderators of group and public conversations can set their description. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 1e1f22591..1148c4db9 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -237,6 +237,15 @@ return [
],
],
[
+ 'name' => 'Room#setDescription',
+ 'url' => '/api/{apiVersion}/room/{token}/description',
+ 'verb' => 'PUT',
+ 'requirements' => [
+ 'apiVersion' => 'v3',
+ 'token' => '^[a-z0-9]{4,30}$',
+ ],
+ ],
+ [
'name' => 'Room#setReadOnly',
'url' => '/api/{apiVersion}/room/{token}/read-only',
'verb' => 'PUT',