regenerateTeamInviteIdWithHttpInfo method

Future<Response> regenerateTeamInviteIdWithHttpInfo(
  1. String teamId
)

Regenerate the Invite ID from a Team

Regenerates the invite ID used in invite links of a team ##### Permissions Must be authenticated and have the manage_team permission.

Note: This method returns the HTTP Response.

Parameters:

  • String teamId (required): Team GUID

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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