put method

Future<XRPCResponse<PutRecordOutput>> put({
  1. String? rkey,
  2. required DeclarationRecord record,
  3. Map<String, dynamic>? $unknown,
  4. Map<String, String>? $headers,
  5. PostClient? $client,
})

Updates declaration record.

Implementation

Future<XRPCResponse<PutRecordOutput>> put({
  String? rkey,
  required DeclarationRecord record,
  Map<String, dynamic>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.atproto.repo.putRecord(
      repo: _ctx.repo,
      collection: ns.chatBskyActorDeclaration,
      rkey: rkey ?? 'self',
      record: record.toJson(),
      $headers: $headers,
      $client: $client,
    );