summaryrefslogtreecommitdiff
path: root/docs/api/channels-messages.md
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-10-25 22:16:03 -0400
committerKit La Touche <kit@transneptune.net>2024-10-25 22:16:03 -0400
commita50911a03c8955e08c77b0f3764dbda963013971 (patch)
tree9f5319191438b85b860ba06c9a203d3f129072a1 /docs/api/channels-messages.md
parent4c49283553f4b18bb2a74de280b340a073e3253e (diff)
parentc87b5c53077c02bf21234e24bf976aa7a5f2bac8 (diff)
Merge branch 'main' into wip/mobile
Diffstat (limited to 'docs/api/channels-messages.md')
-rw-r--r--docs/api/channels-messages.md32
1 files changed, 28 insertions, 4 deletions
diff --git a/docs/api/channels-messages.md b/docs/api/channels-messages.md
index 9ef4e66..9854d22 100644
--- a/docs/api/channels-messages.md
+++ b/docs/api/channels-messages.md
@@ -162,9 +162,21 @@ This endpoint requires the following path parameter:
### Success
-This endpoint will respond with a status of `202 Accepted` when successful. The response will not include a body.
+This endpoint will respond with a status of `202 Accepted` when successful. The body of the response will be a JSON object describing the deleted channel:
-When completed, the service will emit a [channel deleted](events.md#channel-deleted) event with the channel's ID. In addition, the service will emit a [message deleted](events.md#message-deleted) event for each message deleted.
+```json
+{
+ "id": "Cfqdn1234"
+}
+```
+
+The response will have the following fields:
+
+| Field | Type | Description |
+|:----------|:----------|:--|
+| `id` | string | The channel's ID. |
+
+When completed, the service will emit a [message deleted](events.md#message-deleted) event for each message in the channel, followed by a [channel deleted](events.md#channel-deleted) event with the channel's ID.
### Invalid channel ID
@@ -184,9 +196,21 @@ This endpoint requires the following path parameter:
### Success
-This endpoint will respond with a status of `202 Accepted` when successful. The response will not include a body.
+This endpoint will respond with a status of `202 Accepted` when successful. The body of the response will be a JSON object describing the deleted message:
+
+```json
+{
+ "id": "Mgh98yp75"
+}
+```
+
+The response will have the following fields:
+
+| Field | Type | Description |
+|:----------|:----------|:--|
+| `id` | string | The message's ID. |
-When completed, the service will emit a [message deleted](events.md#message-deleted) event with the channel's ID.
+When completed, the service will emit a [message deleted](events.md#message-deleted) event with the message's ID.
### Invalid message ID