diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-04 19:27:47 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-07 19:18:32 +0300 |
commit | 31d0d2aed27677f022fe2f595ba8256b6d712281 (patch) | |
tree | ad295c9a02f500325629ea540687cd51d7ed1ebe /docs/conversation.md | |
parent | 0985260164c188d5d7308c624e335dd3b08ada8b (diff) |
Fix documentation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'docs/conversation.md')
-rw-r--r-- | docs/conversation.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/conversation.md b/docs/conversation.md index e15edf910..b22cd8587 100644 --- a/docs/conversation.md +++ b/docs/conversation.md @@ -248,6 +248,25 @@ + `403 Forbidden` When the conversation is not a public conversation + `404 Not Found` When the conversation could not be found for the participant +## Set default or call permissions for a conversation + +* Method: `PUT` +* Endpoint: `/room/{token}/permissions/{mode}` +* Data: + + field | type | Description + ---|---|--- + `mode` | string | `default` or `call`, in case of call the permissions will be reset to `Default` after the end of a call. + `permissions` | int | New permissions for the attendees, see [constants list](constants.md#attendee-permissions). If permissions are not `Default`, the `Custom` permission will always be added. Note that this will reset all custom permissions that have been given to attendees so far. + +* Response: + - Status code: + + `200 OK` + + `400 Bad Request` When the conversation type does not support setting publishing permissions, e.g. one-to-one conversations + + `400 Bad Request` When the mode is invalid + + `403 Forbidden` When the current user is not a moderator, owner or guest moderator + + `404 Not Found` When the conversation could not be found for the participant + ## Add conversation to favorites * Required capability: `favorites` |