setInboxFavouritedWithHttpInfo method
Future<Response>
setInboxFavouritedWithHttpInfo(
- String inboxId,
- SetInboxFavouritedOptions setInboxFavouritedOptions
Set inbox favourited state
Set and return new favourite state for an inbox
Note: This method returns the HTTP Response
.
Parameters:
-
String inboxId (required): ID of inbox to set favourite state
-
SetInboxFavouritedOptions setInboxFavouritedOptions (required):
Implementation
Future<Response> setInboxFavouritedWithHttpInfo(String inboxId, SetInboxFavouritedOptions setInboxFavouritedOptions,) async {
// ignore: prefer_const_declarations
final path = r'/inboxes/{inboxId}/favourite'
.replaceAll('{inboxId}', inboxId);
// ignore: prefer_final_locals
Object? postBody = setInboxFavouritedOptions;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}