updateIndex method

Future<void> updateIndex({
  1. required String index,
  2. Map<String, dynamic>? content,
})

Updates index definition with content.

Implementation

Future<void> updateIndex({
  required String index,
  Map<String, dynamic>? content,
}) async {
  final rs = await _transport.send(Request('PUT', [index], bodyMap: content));
  rs.throwIfStatusNotOK(message: 'Index update failed.');
}