appBskyVideoFinishUpload function

Future<XRPCResponse<VideoFinishUploadOutput>> appBskyVideoFinishUpload({
  1. required String jobId,
  2. required ServiceContext $ctx,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Finish an upload. This call is idempotent and safe to retry. On deduplication completedJobId may differ from the input jobId; poll getJobStatus with completedJobId. Probe-based validation failures surface later as JOB_STATE_FAILED from getJobStatus, not as errors from this call.

Implementation

Future<XRPCResponse<VideoFinishUploadOutput>> appBskyVideoFinishUpload({
  required String jobId,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyVideoFinishUpload,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'jobId': jobId},
  to: const VideoFinishUploadOutputConverter().fromJson,
);