removeRecentCustomStatusWithHttpInfo method
Future<Response>
removeRecentCustomStatusWithHttpInfo(
- String userId,
- MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest
Delete user's recent custom status
Deletes a user's recent custom status by removing the specific status from the recentCustomStatuses in the user's props and updates the user. ##### Permissions Must be logged in as the user whose recent custom status is being deleted.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): User ID
-
MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest (required): Custom Status object that is to be removed from the recent custom statuses.
Implementation
Future<Response> removeRecentCustomStatusWithHttpInfo(
String userId,
MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/status/custom/recent'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmRemoveRecentCustomStatusRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}