updateTemplateWithHttpInfo method
Future<Response>
updateTemplateWithHttpInfo(
- String templateId,
- CreateTemplateOptions createTemplateOptions
Update template
Update email template
Note: This method returns the HTTP Response
.
Parameters:
-
String templateId (required): Template ID
-
CreateTemplateOptions createTemplateOptions (required):
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,
);
}