postLabelsWithHttpInfo method

Future<Response> postLabelsWithHttpInfo(
  1. LabelCreateRequest labelCreateRequest
)

Create a label

Note: This method returns the HTTP Response.

Parameters:

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,
  );
}