···264264 });
265265 }
266266267267+ /// Edit a record in the repository
268268+ ///
269269+ /// [uri] The URI of the record to edit
270270+ /// [record] The record data to edit
271271+ Future<dynamic> editRecord({required AtUri uri, required Map<String, dynamic> record}) async {
272272+ return _client._executeWithRetry(() async {
273273+ if (!_client._authService.isAuthenticated) {
274274+ throw Exception('Not authenticated');
275275+ }
276276+ final atproto = _client._authService.atproto;
277277+ if (atproto == null) {
278278+ throw Exception('AtProto not initialized');
279279+ }
280280+ return await atproto.repo.putRecord(uri: uri, record: record);
281281+ });
282282+ }
283283+267284 /// Create a record in the repository
268285 ///
269286 /// [collection] The NSID of the collection to create the record in