postLabelsWithHttpInfo method
Create a label
Note: This method returns the HTTP Response
.
Parameters:
- LabelCreateRequest labelCreateRequest (required): Label to create
Implementation
Future<Response> postLabelsWithHttpInfo(
LabelCreateRequest labelCreateRequest,
) async {
final path = r'/labels';
// ignore: prefer_final_locals
Object? postBody = labelCreateRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const authNames = <String>[
'BasicAuthentication',
'QuerystringAuthentication',
'TokenAuthentication'
];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes[0],
authNames,
);
}