Skip to content

Commit ab7d3ed

Browse files
author
Slack API Ref Buildbot
committed
Updated from Slack docs, 2024/11/07
1 parent d8d57e3 commit ab7d3ed

File tree

3 files changed

+142
-1
lines changed

3 files changed

+142
-1
lines changed

methods/admin/admin.apps.requests.list.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"enterprise_id": {
2020
"required": false,
21+
"example": "E1234567890",
2122
"desc": "."
2223
},
2324
"limit": {
@@ -28,6 +29,7 @@
2829
},
2930
"team_id": {
3031
"required": false,
32+
"example": "T1234567890",
3133
"desc": "."
3234
}
3335
},
@@ -42,16 +44,19 @@
4244
"enterprise_not_found": "Returned when enterprise id is not found.",
4345
"feature_not_enabled": "Returned when the Admin APIs feature is not enabled for this team.",
4446
"invalid_cursor": "Value passed for cursor was not valid or is no longer valid.",
47+
"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.",
4548
"not_allowed": "The user is not allowed to access this API method.",
4649
"not_an_admin": "This method is only accessible by org owners and admins.",
50+
"restricted_action": "The action is restricted for this team.",
51+
"user_is_restricted": "This method is only accessible by org owners, admins, and integration managers.",
52+
"no_team_or_enterprise_provided": "Must provide team ID or enterprise ID.",
4753
"team_not_found": "Returned when team id is not found.",
4854
"too_many_teams_provided": "Please provide only team_id OR enterprise_id.",
4955
"access_denied": "Access to a resource specified in the request is denied.",
5056
"account_inactive": "Authentication token is for a deleted user or workspace when using a bot token.",
5157
"deprecated_endpoint": "The endpoint has been deprecated.",
5258
"ekm_access_denied": "Administrators have suspended the ability to post a message.",
5359
"enterprise_is_restricted": "The method cannot be called from an Enterprise.",
54-
"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.",
5560
"is_bot": "This method cannot be called by a legacy bot.",
5661
"method_deprecated": "The method has been deprecated.",
5762
"missing_scope": "The token used is not granted the specific scope permissions required to complete this request.",
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"group": "admin",
3+
"name": "admin.conversations.linkObjects",
4+
"deprecated": false,
5+
"desc": "Link a Salesforce record to a channel",
6+
"args": {
7+
"channel": {
8+
"required": true,
9+
"example": "C1234567890",
10+
"desc": "Channel ID for Slack channel that will be linked to a Salesforce record.",
11+
"type": "channel"
12+
},
13+
"record_id": {
14+
"required": true,
15+
"example": "0019000000DmehKAAR",
16+
"desc": "Salesforce record ID (15 or 18 digit accepted). See here for how to look up record ID.",
17+
"type": "string"
18+
},
19+
"salesforce_org_id": {
20+
"required": true,
21+
"example": "00DGC00000024hsuWY",
22+
"desc": "Salesforce org ID (15 or 18 digit accepted). See here for how to look up Salesforce org ID.",
23+
"type": "string"
24+
}
25+
},
26+
"response": {
27+
"examples": [
28+
29+
]
30+
},
31+
"errors": {
32+
"channel_not_found": "Value passed for channel is invalid.",
33+
"restricted_action": "User does not have access to perform this action.",
34+
"record_not_found": "Value passed for record_id is invalid.",
35+
"channel_is_archived": "Channel is archived.",
36+
"channel_not_org_wide_shared": "Channel is not Org-wide shared.",
37+
"channel_shared_with_nonapproved_team": "Channel is shared with a non-approved external team.",
38+
"record_channel_already_exists": "Record is linked to a different channel.",
39+
"invalid_channel_type": "Channel type cannot be linked.",
40+
"name_taken": "A channel cannot be created with the given name.",
41+
"not_allowed_for_grid_workspace": "Channel type is not allowed for this grid workspace.",
42+
"channel_conversion_incomplete": "An active channel conversion is preventing linking.",
43+
"access_denied": "Access to a resource specified in the request is denied.",
44+
"account_inactive": "Authentication token is for a deleted user or workspace when using a bot token.",
45+
"deprecated_endpoint": "The endpoint has been deprecated.",
46+
"ekm_access_denied": "Administrators have suspended the ability to post a message.",
47+
"enterprise_is_restricted": "The method cannot be called from an Enterprise.",
48+
"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.",
49+
"is_bot": "This method cannot be called by a legacy bot.",
50+
"user_is_restricted": "This method cannot be called by a restricted user or single channel guest.",
51+
"method_deprecated": "The method has been deprecated.",
52+
"missing_scope": "The token used is not granted the specific scope permissions required to complete this request.",
53+
"not_allowed_token_type": "The token type used in this request is not allowed.",
54+
"not_authed": "No authentication token provided.",
55+
"no_permission": "The workspace token used in this request does not have the permissions necessary to complete the request. Make sure your app is a member of the conversation it's attempting to post a message to.",
56+
"org_login_required": "The workspace is undergoing an enterprise migration and will not be available until migration is complete.",
57+
"token_expired": "Authentication token has expired.",
58+
"token_revoked": "Authentication token is for a deleted user or workspace or the app has been removed when using a user token.",
59+
"two_factor_setup_required": "Two factor setup is required.",
60+
"accesslimited": "Access to this method is limited on the current network.",
61+
"fatal_error": "The server could not complete your operation(s) without encountering a catastrophic error. It's possible some aspect of the operation succeeded before the error was raised.",
62+
"internal_error": "The server could not complete your operation(s) without encountering an error, likely due to a transient issue on our end. It's possible some aspect of the operation succeeded before the error was raised.",
63+
"invalid_arg_name": "The method was passed an argument whose name falls outside the bounds of accepted or expected values. This includes very long names and names with non-alphanumeric characters other than _. If you get this error, it is typically an indication that you have made a very malformed API call.",
64+
"invalid_arguments": "The method was either called with invalid arguments or some detail about the arguments passed is invalid, which is more likely when using complex arguments like blocks or attachments.",
65+
"invalid_array_arg": "The method was passed an array as an argument. Please only input valid strings.",
66+
"invalid_charset": "The method was called via a POST request, but the charset specified in the Content-Type header was invalid. Valid charset names are: utf-8 iso-8859-1.",
67+
"invalid_form_data": "The method was called via a POST request with Content-Type application/x-www-form-urlencoded or multipart/form-data, but the form data was either missing or syntactically invalid.",
68+
"invalid_post_type": "The method was called via a POST request, but the specified Content-Type was invalid. Valid types are: application/json application/x-www-form-urlencoded multipart/form-data text/plain.",
69+
"missing_post_type": "The method was called via a POST request and included a data payload, but the request did not include a Content-Type header.",
70+
"ratelimited": "The request has been ratelimited. Refer to the Retry-After header for when to retry the request.",
71+
"request_timeout": "The method was called via a POST request, but the POST data was either missing or truncated.",
72+
"service_unavailable": "The service is temporarily unavailable.",
73+
"team_added_to_org": "The workspace associated with your request is currently undergoing migration to an Enterprise Organization. Web API and other platform operations will be intermittently unavailable until the transition is complete."
74+
}
75+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"group": "admin",
3+
"name": "admin.conversations.unlinkObjects",
4+
"deprecated": false,
5+
"desc": "Unlink a Salesforce record from a channel",
6+
"args": {
7+
"channel": {
8+
"required": true,
9+
"example": "C1234567890",
10+
"desc": "Channel ID for Slack channel that will be unlinked from the Salesforce record.",
11+
"type": "channel"
12+
},
13+
"new_name": {
14+
"required": true,
15+
"desc": "Channel name you would like to give to the channel that is being unlinked from the Salesforce record.",
16+
"type": "string"
17+
}
18+
},
19+
"response": {
20+
"examples": [
21+
22+
]
23+
},
24+
"errors": {
25+
"channel_not_found": "Value passed for channel is invalid.",
26+
"restricted_action": "User does not have access to perform this action.",
27+
"invalid_name_specials": "Value passed for name contained unallowed special characters or upper case characters.",
28+
"name_taken": "A channel cannot be created with the given name.",
29+
"access_denied": "Access to a resource specified in the request is denied.",
30+
"account_inactive": "Authentication token is for a deleted user or workspace when using a bot token.",
31+
"deprecated_endpoint": "The endpoint has been deprecated.",
32+
"ekm_access_denied": "Administrators have suspended the ability to post a message.",
33+
"enterprise_is_restricted": "The method cannot be called from an Enterprise.",
34+
"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.",
35+
"is_bot": "This method cannot be called by a legacy bot.",
36+
"user_is_restricted": "This method cannot be called by a restricted user or single channel guest.",
37+
"method_deprecated": "The method has been deprecated.",
38+
"missing_scope": "The token used is not granted the specific scope permissions required to complete this request.",
39+
"not_allowed_token_type": "The token type used in this request is not allowed.",
40+
"not_authed": "No authentication token provided.",
41+
"no_permission": "The workspace token used in this request does not have the permissions necessary to complete the request. Make sure your app is a member of the conversation it's attempting to post a message to.",
42+
"org_login_required": "The workspace is undergoing an enterprise migration and will not be available until migration is complete.",
43+
"token_expired": "Authentication token has expired.",
44+
"token_revoked": "Authentication token is for a deleted user or workspace or the app has been removed when using a user token.",
45+
"two_factor_setup_required": "Two factor setup is required.",
46+
"accesslimited": "Access to this method is limited on the current network.",
47+
"fatal_error": "The server could not complete your operation(s) without encountering a catastrophic error. It's possible some aspect of the operation succeeded before the error was raised.",
48+
"internal_error": "The server could not complete your operation(s) without encountering an error, likely due to a transient issue on our end. It's possible some aspect of the operation succeeded before the error was raised.",
49+
"invalid_arg_name": "The method was passed an argument whose name falls outside the bounds of accepted or expected values. This includes very long names and names with non-alphanumeric characters other than _. If you get this error, it is typically an indication that you have made a very malformed API call.",
50+
"invalid_arguments": "The method was either called with invalid arguments or some detail about the arguments passed is invalid, which is more likely when using complex arguments like blocks or attachments.",
51+
"invalid_array_arg": "The method was passed an array as an argument. Please only input valid strings.",
52+
"invalid_charset": "The method was called via a POST request, but the charset specified in the Content-Type header was invalid. Valid charset names are: utf-8 iso-8859-1.",
53+
"invalid_form_data": "The method was called via a POST request with Content-Type application/x-www-form-urlencoded or multipart/form-data, but the form data was either missing or syntactically invalid.",
54+
"invalid_post_type": "The method was called via a POST request, but the specified Content-Type was invalid. Valid types are: application/json application/x-www-form-urlencoded multipart/form-data text/plain.",
55+
"missing_post_type": "The method was called via a POST request and included a data payload, but the request did not include a Content-Type header.",
56+
"ratelimited": "The request has been ratelimited. Refer to the Retry-After header for when to retry the request.",
57+
"request_timeout": "The method was called via a POST request, but the POST data was either missing or truncated.",
58+
"service_unavailable": "The service is temporarily unavailable.",
59+
"team_added_to_org": "The workspace associated with your request is currently undergoing migration to an Enterprise Organization. Web API and other platform operations will be intermittently unavailable until the transition is complete."
60+
}
61+
}

0 commit comments

Comments
 (0)