stopFollowingThreadWithHttpInfo method

Future<Response> stopFollowingThreadWithHttpInfo(
  1. String userId,
  2. String teamId,
  3. String threadId
)

Stop following a thread

Stop following a thread Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have edit_other_users permission.

Note: This method returns the HTTP Response.

Parameters:

  • String userId (required): The ID of the user. This can also be "me" which will point to the current user.

  • String teamId (required): The ID of the team in which the thread is.

  • String threadId (required): The ID of the thread to update

Implementation

Future<Response> stopFollowingThreadWithHttpInfo(
  String userId,
  String teamId,
  String threadId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/teams/{team_id}/threads/{thread_id}/following'
      .replaceAll('{user_id}', userId)
      .replaceAll('{team_id}', teamId)
      .replaceAll('{thread_id}', threadId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}