moveCommandWithHttpInfo method

Future<Response> moveCommandWithHttpInfo(
  1. String commandId,
  2. MmMoveCommandRequest mmMoveCommandRequest
)

Move a command

Move a command to a different team based on command id string. ##### Permissions Must have manage_slash_commands permission for the team the command is currently in and the destination team. Minimum server version: 5.22

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> moveCommandWithHttpInfo(
  String commandId,
  MmMoveCommandRequest mmMoveCommandRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/commands/{command_id}/move'.replaceAll('{command_id}', commandId);

  // ignore: prefer_final_locals
  Object? postBody = mmMoveCommandRequest;

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

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

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