updateGroup method

Future<ClientResponse<GroupResponse, Errors>> updateGroup(
  1. String groupId,
  2. GroupRequest request
)

Updates the group with the given Id.

@param {String} groupId The Id of the group to update. @param {GroupRequest} request The request that contains all the new group information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<GroupResponse, Errors>> updateGroup(
    String groupId, GroupRequest request) {
  return _start<GroupResponse, Errors>()
      .withUri('/api/group')
      .withUriSegment(groupId)
      .withJSONBody(request)
      .withMethod('PUT')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => GroupResponse.fromJson(d)))
      .go();
}