Skip to content

Commit 6b9c77d

Browse files
author
Slack API Ref Buildbot
committed
Updated from Slack docs, 2025/04/09
1 parent 8e85461 commit 6b9c77d

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"group": "admin",
3+
"name": "admin.conversations.createForObjects",
4+
"deprecated": false,
5+
"desc": "Create a Salesforce channel for the corresponding object provided.",
6+
"args": {
7+
"object_id": {
8+
"required": true,
9+
"example": "0019000000DmehKAAR",
10+
"desc": "Object / Record ID (15 or 18 digit accepted). See here for how to look up an ID.",
11+
"type": "string"
12+
},
13+
"salesforce_org_id": {
14+
"required": true,
15+
"example": "00DGC00000024hsuWY",
16+
"desc": "Salesforce org ID (15 or 18 digit accepted). See here for how to look up Salesforce org ID.",
17+
"type": "string"
18+
},
19+
"invite_object_team": {
20+
"required": false,
21+
"example": "false",
22+
"desc": "Optional flag to add all team members related to the object to the newly created Salesforce channel.",
23+
"type": "boolean"
24+
}
25+
},
26+
"response": {
27+
"examples": [
28+
"{\n \"ok\": true,\n \"channel_id\": \"C12345\"\n}"
29+
]
30+
},
31+
"errors": {
32+
"restricted_action": "User does not have access to perform this action.",
33+
"record_not_found": "Value passed for object_id is invalid.",
34+
"invalid_org_id": "Value passed for salesforce_org_id is invalid.",
35+
"feature_not_enabled": "Feature not enabled.",
36+
"channel_already_exists": "Object is linked to a different channel.",
37+
"missing_record_channel_config": "Record Channels are not enabled for the given object type.",
38+
"access_denied": "Access to a resource specified in the request is denied.",
39+
"account_inactive": "Authentication token is for a deleted user or workspace when using a bot token.",
40+
"deprecated_endpoint": "The endpoint has been deprecated.",
41+
"ekm_access_denied": "Administrators have suspended the ability to post a message.",
42+
"enterprise_is_restricted": "The method cannot be called from an Enterprise.",
43+
"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.",
44+
"is_bot": "This method cannot be called by a legacy bot.",
45+
"user_is_restricted": "This method cannot be called by a restricted user or single channel guest.",
46+
"method_deprecated": "The method has been deprecated.",
47+
"missing_scope": "The token used is not granted the specific scope permissions required to complete this request.",
48+
"not_allowed_token_type": "The token type used in this request is not allowed.",
49+
"not_authed": "No authentication token provided.",
50+
"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.",
51+
"org_login_required": "The workspace is undergoing an enterprise migration and will not be available until migration is complete.",
52+
"token_expired": "Authentication token has expired.",
53+
"token_revoked": "Authentication token is for a deleted user or workspace or the app has been removed when using a user token.",
54+
"two_factor_setup_required": "Two factor setup is required.",
55+
"accesslimited": "Access to this method is limited on the current network.",
56+
"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.",
57+
"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.",
58+
"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.",
59+
"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.",
60+
"invalid_array_arg": "The method was passed an array as an argument. Please only input valid strings.",
61+
"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.",
62+
"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.",
63+
"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.",
64+
"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.",
65+
"ratelimited": "The request has been ratelimited. Refer to the Retry-After header for when to retry the request.",
66+
"request_timeout": "The method was called via a POST request, but the POST data was either missing or truncated.",
67+
"service_unavailable": "The service is temporarily unavailable.",
68+
"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."
69+
}
70+
}

0 commit comments

Comments
 (0)