appBskyDraftUpdateDraft function
Future<XRPCResponse<EmptyData> >
appBskyDraftUpdateDraft({
- required DraftWithId draft,
- required ServiceContext $ctx,
- String? $service,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication.
Implementation
Future<XRPCResponse<EmptyData>> appBskyDraftUpdateDraft({
required DraftWithId draft,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.appBskyDraftUpdateDraft,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {...?$unknown, 'draft': draft.toJson()},
);