createRecord method

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

Create a single new repository record. Requires auth, implemented by PDS.

Implementation

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