From 53ad7e3f662bab80b94d45e6d752c11d355c9b3c Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 3 Mar 2021 17:01:26 +0000 Subject: [PATCH] Ensure we return the room_id after knocking via the CS API --- proposals/2403-knock.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/proposals/2403-knock.md b/proposals/2403-knock.md index e601b7a22..7b91da870 100644 --- a/proposals/2403-knock.md +++ b/proposals/2403-knock.md @@ -216,13 +216,16 @@ This endpoint requires authentication and can be rate limited. #### Responses: ##### Status code 200: -The user knocked successfully. Example reply: +The user knocked successfully. The room ID of the knocked on room is returned. Example +reply: ```json -{} +{ + "room_id": "!ZclcEpFTORTjmWIrqH:matrix.org" +} ``` ##### Status code 403: -The user wasn't allowed to knock (e.g. they are banned). Error reply: +The user wasn't allowed to knock (e.g. they are banned). Example error reply: ```json { "errcode": "M_FORBIDDEN",