setDocumentTemplateAttachmentJsonWithHttpInfo method
Future<Response>
setDocumentTemplateAttachmentJsonWithHttpInfo(
- String documentTemplateId,
- ByteArrayDto byteArrayDto
Creates a document's attachment
Note: This method returns the HTTP Response
.
Parameters:
-
String documentTemplateId (required):
-
ByteArrayDto byteArrayDto (required):
Implementation
Future<Response> setDocumentTemplateAttachmentJsonWithHttpInfo(String documentTemplateId, ByteArrayDto byteArrayDto,) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/doctemplate/{documentTemplateId}/attachmentJson'
.replaceAll('{documentTemplateId}', documentTemplateId);
// ignore: prefer_final_locals
Object? postBody = byteArrayDto;
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,
);
}