aiBotV1BotsWebhooksSlackCreateWithHttpInfo method
Future<Response>
aiBotV1BotsWebhooksSlackCreateWithHttpInfo(
- String org,
- SlackWebhook slackWebhook
Performs an HTTP 'POST /api/ai/bot/v1/bots/webhooks/{org}/slack/' operation and returns the Response.
Parameters:
-
String org (required):
-
SlackWebhook slackWebhook (required):
Implementation
Future<Response> aiBotV1BotsWebhooksSlackCreateWithHttpInfo(String org, SlackWebhook slackWebhook,) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/bot/v1/bots/webhooks/{org}/slack/'
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody = slackWebhook;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json', 'multipart/form-data', 'application/x-www-form-urlencoded'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}