revertTemplateWithHttpInfo method

Future<Response> revertTemplateWithHttpInfo(
  1. String templateType,
  2. String slug
)

Revert a template

Reverts an updated template to its default state

Note: This method returns the HTTP Response.

Parameters:

  • String templateType (required): The type of template to revert

  • String slug (required): The slug of the template to revert

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