updateTemplateWithHttpInfo method

Future<Response> updateTemplateWithHttpInfo(
  1. String templateId,
  2. CreateTemplateOptions createTemplateOptions
)

Update template

Update email template

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateTemplateWithHttpInfo(String templateId, CreateTemplateOptions createTemplateOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/templates/{templateId}'
    .replaceAll('{templateId}', templateId);

  // ignore: prefer_final_locals
  Object? postBody = createTemplateOptions;

  final queryParams = <QueryParam>[];
  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,
  );
}