putRecord method

Future<XRPCResponse<RepoPutRecordOutput>> putRecord({
  1. required String repo,
  2. required String collection,
  3. required String rkey,
  4. bool? validate,
  5. required Map<String, dynamic> record,
  6. String? swapRecord,
  7. String? swapCommit,
  8. Map<String, String>? $headers,
  9. Map<String, String>? $unknown,
})

Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.

Implementation

Future<XRPCResponse<RepoPutRecordOutput>> putRecord({
  required String repo,
  required String collection,
  required String rkey,
  bool? validate,
  required Map<String, dynamic> record,
  String? swapRecord,
  String? swapCommit,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await comAtprotoRepoPutRecord(
  repo: repo,
  collection: collection,
  rkey: rkey,
  validate: validate,
  record: record,
  swapRecord: swapRecord,
  swapCommit: swapCommit,
  $ctx: _ctx,
  $headers: $headers,
  $unknown: $unknown,
);