updateCell method

Future<CatalogRow> updateCell({
  1. required String keyPath,
  2. required String locale,
  3. required dynamic value,
})

Implementation

Future<CatalogRow> updateCell({
  required String keyPath,
  required String locale,
  required dynamic value,
}) async {
  final payload = await _requestJson(
    'PATCH',
    '/api/catalog/cell',
    body: <String, dynamic>{
      'keyPath': keyPath,
      'locale': locale,
      'value': value,
    },
  );
  return CatalogRow.fromJson(payload);
}