openInteractiveDialogWithHttpInfo method

Future<Response> openInteractiveDialogWithHttpInfo(
  1. MmOpenInteractiveDialogRequest mmOpenInteractiveDialogRequest
)

Open a dialog

Open an interactive dialog using a trigger ID provided by a slash command, or some other action payload. See https://docs.mattermost.com/developer/interactive-dialogs.html for more information on interactive dialogs. Minimum server version: 5.6

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> openInteractiveDialogWithHttpInfo(
  MmOpenInteractiveDialogRequest mmOpenInteractiveDialogRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/actions/dialogs/open';

  // ignore: prefer_final_locals
  Object? postBody = mmOpenInteractiveDialogRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}