createCodesWithHttpInfo method
Create a batch of codes
Create a batch of code entities. Fields Type, Code and Version are required for each code.
Note: This method returns the HTTP Response
.
Parameters:
- List<CodeDto> codeDto (required):
Implementation
Future<Response> createCodesWithHttpInfo(List<CodeDto> codeDto) async {
final path = r'/rest/v1/code/batch';
Object postBody = codeDto;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
final contentTypes = <String>['application/json'];
final nullableContentType = contentTypes.isNotEmpty ? contentTypes[0] : null;
final authNames = <String>[r'basicSchema'];
return await apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
nullableContentType,
authNames,
);
}