summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-01-18 19:08:58 -0300
committerVitor Mattos <vitor@php.rio>2023-01-18 19:08:58 -0300
commit7bee38ff2469efcc34d8e8ada8108df88a2ba212 (patch)
tree92ed2d2021f2c2e5b5c038ef2e87a219c05027e0 /docs
parente529b71aa08c77d1e17ff021dbb33f9de4375746 (diff)
Update documentation
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'docs')
-rw-r--r--docs/recording.md27
1 files changed, 24 insertions, 3 deletions
diff --git a/docs/recording.md b/docs/recording.md
index 695dbbb62..b077e973b 100644
--- a/docs/recording.md
+++ b/docs/recording.md
@@ -80,12 +80,33 @@
* Endpoint: `/recording/{token}/notification`
* Data:
-| field | type | Description |
-| ---------- | ------ | --------------------------------------------------------- |
-| `dateTime` | string | The date time that notification was created. |
+| field | type | Description |
+| ----------- | ------ | --------------------------------------------------------------------- |
+| `timestamp` | string | Timestamp in seconds and UTC time zone that notification was created. |
* Response:
- Status code:
+ `200 OK`
+ `403 Forbidden` When the user is not a moderator/owner.
+ `404 Not Found` Room not found
+
+## Share store call recording
+
+* Required capability: `recording-v1`
+* Method: `POST`
+* Endpoint: `/recording/{token}/share-chat`
+* Data:
+
+| field | type | Description |
+| ----------- | ------- | --------------------------------------------------------------------- |
+| `timestamp` | string | Timestamp in seconds and UTC time zone that notification was created. |
+| `fileId` | integer | File id of recording to share at the room. |
+
+* Response:
+ - Status code:
+ + `200 OK`
+ + `400 Bad Request` Error: `file`: Shared file is invalid
+ + `400 Bad Request` Error: `file-long-data`: Shared file have a too big name that can't stay in a message
+ + `400 Bad Request` Error: `send-system-message`: Failed to send the shared file as system message
+ + `403 Forbidden` When the user is not a moderator/owne
+ + `404 Not Found` Room not found