createSchemeWithHttpInfo method

Future<Response> createSchemeWithHttpInfo(
  1. MmCreateSchemeRequest mmCreateSchemeRequest
)

Create a scheme

Create a new scheme. ##### Permissions Must have manage_system permission. Minimum server version: 5.0

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> createSchemeWithHttpInfo(
  MmCreateSchemeRequest mmCreateSchemeRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/schemes';

  // ignore: prefer_final_locals
  Object? postBody = mmCreateSchemeRequest;

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