put method
Future<XRPCResponse<RepoPutRecordOutput> >
put({
- required String text,
- List<
RichtextFacet> ? facets, - ReplyRef? reply,
- UFeedPostEmbed? embed,
- List<
String> ? langs, - UFeedPostLabels? labels,
- List<
String> ? tags, - DateTime? createdAt,
- required String rkey,
- bool? validate,
- String? swapRecord,
- String? swapCommit,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Implementation
Future<XRPCResponse<RepoPutRecordOutput>> put({
required String text,
List<RichtextFacet>? facets,
ReplyRef? reply,
UFeedPostEmbed? embed,
List<String>? langs,
UFeedPostLabels? labels,
List<String>? tags,
DateTime? createdAt,
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.appBskyFeedPost,
rkey: rkey,
validate: validate,
record: {
...?$unknown,
'text': text,
if (facets != null) 'facets': facets.map((e) => e.toJson()).toList(),
if (reply != null) 'reply': reply.toJson(),
if (embed != null) 'embed': embed.toJson(),
if (langs != null) 'langs': langs,
if (labels != null) 'labels': labels.toJson(),
if (tags != null) 'tags': tags,
'createdAt': iso8601(createdAt),
},
swapRecord: swapRecord,
swapCommit: swapCommit,
$ctx: _ctx,
$headers: $headers,
);