diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-11 09:19:59 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-12-08 12:58:48 +0100 |
commit | c5cf6be4a318ccab97f4f65f106cc20ede93a241 (patch) | |
tree | 2fb0e4d1f4a9bd83a023dfc13f0caee8d139a745 /appinfo/routes.php | |
parent | b64f891f964f3b59f50f71af6c9c1a27ef5976ac (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/routes.php')
-rw-r--r-- | appinfo/routes.php | 9 |
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', |