installMarketplacePluginWithHttpInfo method
Future<Response>
installMarketplacePluginWithHttpInfo(
- MmInstallMarketplacePluginRequest mmInstallMarketplacePluginRequest
Installs a marketplace plugin
Installs a plugin listed in the marketplace server. ##### Permissions Must have manage_system
permission. Minimum server version: 5.16
Note: This method returns the HTTP Response
.
Parameters:
- MmInstallMarketplacePluginRequest mmInstallMarketplacePluginRequest (required): The metadata identifying the plugin to install.
Implementation
Future<Response> installMarketplacePluginWithHttpInfo(
MmInstallMarketplacePluginRequest mmInstallMarketplacePluginRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/plugins/marketplace';
// ignore: prefer_final_locals
Object? postBody = mmInstallMarketplacePluginRequest;
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,
);
}