Skip to content

Commit d59900a

Browse files
author
Slack API Ref Buildbot
committed
Updated from Slack docs, 2024/08/20
1 parent 374f1a6 commit d59900a

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

methods/admin/admin.users.session.invalidate.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,27 @@
1010
"desc": "ID of the session to invalidate.",
1111
"type": "integer"
1212
},
13+
"user_id": {
14+
"required": false,
15+
"example": "U12345",
16+
"desc": "ID of the user that the session belongs to."
17+
},
1318
"team_id": {
14-
"required": true,
19+
"required": false,
1520
"example": "T1234",
16-
"desc": "ID of the workspace that the session belongs to.",
17-
"type": "string"
21+
"desc": "ID of the workspace that the session belongs to."
1822
}
1923
},
24+
"arg_groups": [
25+
{
26+
"args": [
27+
"user_id",
28+
"team_id"
29+
],
30+
"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.",
31+
"mutually_exclusive": true
32+
}
33+
],
2034
"response": {
2135
"examples": [
2236
"{\n \"ok\": true\n}"
@@ -28,7 +42,6 @@
2842
"feature_not_enabled": "The token provided can't call this method.",
2943
"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.",
3044
"not_an_admin": "This method must be called by an Org Owner or Admin.",
31-
"session_expired": "The requested session has already expired.",
3245
"session_invalidation_failed": "There was an error invalidating the session.",
3346
"session_not_found": "The requested session wasn't found.",
3447
"unknown_method": "This method is currently not available.",

methods/bookmarks/bookmarks.add.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"channel_not_found": "Channel cannot be found.",
5353
"file_not_found": "File cannot be found.",
5454
"invalid_bookmark_type": "Bookmark type is not valid.",
55+
"invalid_shortcut_type": "Shortcut type is not valid.",
5556
"invalid_child_type": "Child type is not valid.",
5657
"invalid_emoji": "Invalid emoji, does not follow the pattern of a valid emoji name.",
5758
"invalid_entity_id": "Invalid entity_id, file or message type bookmark should have original file or message ID.",

0 commit comments

Comments
 (0)