setDocumentTemplateAttachmentWithHttpInfo method
Creates a document's attachment
Note: This method returns the HTTP Response
.
Parameters:
-
String documentTemplateId (required):
-
List<String> requestBody (required):
Implementation
Future<Response> setDocumentTemplateAttachmentWithHttpInfo(String documentTemplateId, List<String> requestBody,) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/doctemplate/{documentTemplateId}/attachment'.replaceAll('{documentTemplateId}', documentTemplateId);
// ignore: prefer_final_locals
Object? postBody = requestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const authNames = <String>[r'basicSchema'];
const contentTypes = <String>['application/octet-stream'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
authNames,
);
}