removeTeamMemberWithHttpInfo method

Future<Response> removeTeamMemberWithHttpInfo(
  1. String teamId,
  2. String userId
)

Remove user from team

Delete the team member object for a user, effectively removing them from a team. ##### Permissions Must be logged in as the user or have the remove_user_from_team permission.

Note: This method returns the HTTP Response.

Parameters:

  • String teamId (required): Team GUID

  • String userId (required): User GUID

Implementation

Future<Response> removeTeamMemberWithHttpInfo(
  String teamId,
  String userId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/teams/{team_id}/members/{user_id}'.replaceAll('{team_id}', teamId).replaceAll('{user_id}', userId);

  // 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,
  );
}