put method
Future<XRPCResponse<RepoPutRecordOutput>>
put(
{ - DateTime? createdAt,
- required AtUri post,
- List<AtUri>? detachedEmbeddingUris,
- List<UFeedPostgateEmbeddingRules>? embeddingRules,
- required String rkey,
- bool? validate,
- String? swapRecord,
- String? swapCommit,
- Map<String, String>? $unknown,
})
Implementation
Future<XRPCResponse<RepoPutRecordOutput>> put({
DateTime? createdAt,
required AtUri post,
List<AtUri>? detachedEmbeddingUris,
List<UFeedPostgateEmbeddingRules>? embeddingRules,
required String rkey,
bool? validate,
String? swapRecord,
String? swapCommit,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await comAtprotoRepoPutRecord(
repo: _ctx.repo,
collection: ids.appBskyFeedPostgate,
rkey: rkey,
validate: validate,
record: {
...?$unknown,
'createdAt': iso8601(createdAt),
'post': post.toString(),
if (detachedEmbeddingUris != null)
'detachedEmbeddingUris': detachedEmbeddingUris
.map((e) => e.toString())
.toList(),
if (embeddingRules != null)
'embeddingRules': embeddingRules.map((e) => e.toJson()).toList(),
},
swapRecord: swapRecord,
swapCommit: swapCommit,
$ctx: _ctx,
$headers: $headers,
);