updateFavoritesWithHttpInfo method
Future<Response>
updateFavoritesWithHttpInfo(
- String companyId,
- String userId,
- String favoriteId,
- FavoritesUpdate favoritesUpdate,
Update an existing favorite by ID
Note: This method returns the HTTP Response.
Parameters:
-
String companyId (required): Unique identifier for the Company
-
String userId (required): Unique identifier for the User
-
String favoriteId (required): Unique identifier for the Favorite
-
FavoritesUpdate favoritesUpdate (required):
Implementation
Future<Response> updateFavoritesWithHttpInfo(String companyId, String userId, String favoriteId, FavoritesUpdate favoritesUpdate,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/users/{user_id}/favorites/{favorite_id}'
.replaceAll('{company_id}', companyId)
.replaceAll('{user_id}', userId)
.replaceAll('{favorite_id}', favoriteId);
// ignore: prefer_final_locals
Object? postBody = favoritesUpdate;
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,
);
}