addHashTagWithHttpInfo method

Future<Response> addHashTagWithHttpInfo({
  1. String? tenantId,
  2. CreateHashTagBody? createHashTagBody,
})

Performs an HTTP 'POST /api/v1/hash-tags' operation and returns the Response. Parameters:

Implementation

Future<Response> addHashTagWithHttpInfo({ String? tenantId, CreateHashTagBody? createHashTagBody, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/hash-tags';

  // ignore: prefer_final_locals
  Object? postBody = createHashTagBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (tenantId != null) {
    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  }

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}