submitInteractiveDialogWithHttpInfo method

Future<Response> submitInteractiveDialogWithHttpInfo(
  1. MmSubmitInteractiveDialogRequest mmSubmitInteractiveDialogRequest
)

Submit a dialog

Endpoint used by the Mattermost clients to submit a dialog. 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> submitInteractiveDialogWithHttpInfo(
  MmSubmitInteractiveDialogRequest mmSubmitInteractiveDialogRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/actions/dialogs/submit';

  // ignore: prefer_final_locals
  Object? postBody = mmSubmitInteractiveDialogRequest;

  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,
  );
}