update method

Future<Response> update({
  1. required String teamId,
  2. required String name,
})

Update Team

Update a team by its unique ID. Only team owners have write access for this resource.

Implementation

Future<req.Response> update({required String teamId, required String name}) {
  final String path =
      '/teams/{teamId}'.replaceAll(RegExp('{teamId}'), teamId);

  final Map<String, dynamic> params = {
    'name': name,
  };

  final Map<String, String> headers = {
    'content-type': 'application/json',
  };

  return client.call(HttpMethod.put,
      path: path, params: params, headers: headers);
}