From d59900a23f66ae93aac3179a9e04ade6e55fecb7 Mon Sep 17 00:00:00 2001 From: Slack API Ref Buildbot Date: Tue, 20 Aug 2024 22:29:38 +0000 Subject: [PATCH] Updated from Slack docs, 2024/08/20 --- .../admin/admin.users.session.invalidate.json | 21 +++++++++++++++---- methods/bookmarks/bookmarks.add.json | 1 + 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/methods/admin/admin.users.session.invalidate.json b/methods/admin/admin.users.session.invalidate.json index afa17041..420f0a94 100644 --- a/methods/admin/admin.users.session.invalidate.json +++ b/methods/admin/admin.users.session.invalidate.json @@ -10,13 +10,27 @@ "desc": "ID of the session to invalidate.", "type": "integer" }, + "user_id": { + "required": false, + "example": "U12345", + "desc": "ID of the user that the session belongs to." + }, "team_id": { - "required": true, + "required": false, "example": "T1234", - "desc": "ID of the workspace that the session belongs to.", - "type": "string" + "desc": "ID of the workspace that the session belongs to." } }, + "arg_groups": [ + { + "args": [ + "user_id", + "team_id" + ], + "desc": "Exactly one of these arguments is required to identify the session that is to be invalidated, user_id is preferred and team_id will be deprecated and eventually removed.", + "mutually_exclusive": true + } + ], "response": { "examples": [ "{\n \"ok\": true\n}" @@ -28,7 +42,6 @@ "feature_not_enabled": "The token provided can't call this method.", "invalid_auth": "Some aspect of authentication cannot be validated. Either the provided token is invalid or the request originates from an IP address disallowed from making the request.", "not_an_admin": "This method must be called by an Org Owner or Admin.", - "session_expired": "The requested session has already expired.", "session_invalidation_failed": "There was an error invalidating the session.", "session_not_found": "The requested session wasn't found.", "unknown_method": "This method is currently not available.", diff --git a/methods/bookmarks/bookmarks.add.json b/methods/bookmarks/bookmarks.add.json index d78fb9a9..c69aeb68 100644 --- a/methods/bookmarks/bookmarks.add.json +++ b/methods/bookmarks/bookmarks.add.json @@ -52,6 +52,7 @@ "channel_not_found": "Channel cannot be found.", "file_not_found": "File cannot be found.", "invalid_bookmark_type": "Bookmark type is not valid.", + "invalid_shortcut_type": "Shortcut type is not valid.", "invalid_child_type": "Child type is not valid.", "invalid_emoji": "Invalid emoji, does not follow the pattern of a valid emoji name.", "invalid_entity_id": "Invalid entity_id, file or message type bookmark should have original file or message ID.",