revertTemplateWithHttpInfo method
Revert a template
Reverts an updated template to its default state
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<http.Response> revertTemplateWithHttpInfo(
String templateType,
String slug,
) async {
// ignore: prefer_const_declarations
final path = r'/templates/{template_type}/{slug}/revert'
.replaceAll('{template_type}', templateType)
.replaceAll('{slug}', slug);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}