From 84f43a3c10d88e686c82a78c9e68afcfec6a3de2 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 30 Jun 2022 22:59:22 +0100 Subject: [PATCH] Add 403 return codes --- data/api/client-server/account-data.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/data/api/client-server/account-data.yaml b/data/api/client-server/account-data.yaml index f7e7993d..f3700dd6 100644 --- a/data/api/client-server/account-data.yaml +++ b/data/api/client-server/account-data.yaml @@ -71,6 +71,10 @@ paths: application/json: {} schema: type: object + 403: + description: |- + The access token provided is not authorized to modify this user's account + data. tags: - User data get: @@ -106,6 +110,10 @@ paths: type: object example: { "custom_account_data_key": "custom_config_value"} + 403: + description: |- + The access token provided is not authorized to retrieve this user's account + data. tags: - User data "/user/{userId}/rooms/{roomId}/account_data/{type}": @@ -159,6 +167,10 @@ paths: application/json: {} schema: type: object + 403: + description: |- + The access token provided is not authorized to modify this user's account + data. tags: - User data get: @@ -201,5 +213,9 @@ paths: type: object example: { "custom_account_data_key": "custom_config_value"} + 403: + description: |- + The access token provided is not authorized to retrieve this user's account + data. tags: - User data