patchHashTagWithHttpInfo method
Future<Response>
patchHashTagWithHttpInfo(
- String tag, {
- String? tenantId,
- UpdateHashTagBody? updateHashTagBody,
Performs an HTTP 'PATCH /api/v1/hash-tags/{tag}' operation and returns the Response.
Parameters:
-
String tag (required):
-
String tenantId:
-
UpdateHashTagBody updateHashTagBody:
Implementation
Future<Response> patchHashTagWithHttpInfo(String tag, { String? tenantId, UpdateHashTagBody? updateHashTagBody, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/hash-tags/{tag}'
.replaceAll('{tag}', tag);
// ignore: prefer_final_locals
Object? postBody = updateHashTagBody;
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,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}