updateTeamSchemeWithHttpInfo method

Future<Response> updateTeamSchemeWithHttpInfo(
  1. String teamId,
  2. MmUpdateTeamSchemeRequest mmUpdateTeamSchemeRequest
)

Set a team's scheme

Set a team's scheme, more specifically sets the scheme_id value of a team record. ##### Permissions Must have manage_system permission. Minimum server version: 5.0

Note: This method returns the HTTP Response.

Parameters:

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody = mmUpdateTeamSchemeRequest;

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

  const contentTypes = <String>['application/json'];

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