postUserRecentCustomStatusDeleteWithHttpInfo method

Future<Response> postUserRecentCustomStatusDeleteWithHttpInfo(
  1. String userId,
  2. 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:

Implementation

Future<Response> postUserRecentCustomStatusDeleteWithHttpInfo(
  String userId,
  MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/status/custom/recent/delete'.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,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}