uploads

Complete an upload

post/v1/apps/uploads/{id}/complete

Request

  • Base URL: https://phonebox.dev
  • URL: https://phonebox.dev/v1/apps/uploads/{id}/complete
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

storage_idstring

The storageId the upload URL answered with, as {"storageId": "…"}.

storageIdstring

The same, named as the upload URL answers it, so its answer can be sent on as it is.

Response

The file is one the project already has ready: the answer is that ready upload, another ID, so install it; this upload becomes a duplicate naming it. Otherwise the upload as it is: it had already been completed with this file, or its file is over the size limit (too_large).

object'upload' required
idstring required
status'awaiting_file' | 'processing' | 'ready' | 'invalid_apk' | 'too_large' | 'storage_full' | 'failed' | 'duplicate' | 'deleted' required
packagestring nullable required

The package the APK's manifest declares, once read.

version_codeinteger nullable required
version_namestring nullable required
min_sdkinteger nullable required
size_bytesinteger nullable required
sha256string nullable required

The file's SHA-256, in hex.

created_atstring date-time required

ISO 8601 timestamp (UTC)

expires_atstring date-time required

When Phonebox deletes the upload: 7 days after its last install, or its creation if never installed; an hour after creation while it waits for its file.

Changes

No recorded changes to this operation across all 1 revision of this API.