updateContactCategoryWithHttpInfo method
Future<Response>
updateContactCategoryWithHttpInfo(
- String id,
- UpdateContactCategoryRequest updateContactCategoryRequest
Update a category.
Note: This method returns the HTTP Response.
Parameters:
-
String id (required):
-
UpdateContactCategoryRequest updateContactCategoryRequest (required):
Implementation
Future<Response> updateContactCategoryWithHttpInfo(String id, UpdateContactCategoryRequest updateContactCategoryRequest,) async {
// ignore: prefer_const_declarations
final path = r'/v1/contacts/categories/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = updateContactCategoryRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}