updateDraft method

Future<XRPCResponse<EmptyData>> updateDraft({
  1. required DraftWithId draft,
  2. String? $service,
  3. Map<String, String>? $headers,
  4. 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>> updateDraft({
  required DraftWithId draft,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await appBskyDraftUpdateDraft(
  draft: draft,
  $ctx: ctx,
  $service: $service,
  $headers: $headers,
  $unknown: $unknown,
);