Palbase Stores · API
/stores/packages/{package_id}/artifactHand over a package's build
A build machine hands over the build — an iOS app's unsigned .ipa; an Android app's App Bundle (.aab) for Play, or its APK for a direct install, told by what the file holds — with the package's upload token (Palbase-Upload-Token header) and its Content-Length. It must be the app's — its bundle id, and the build number the package was given — or it is refused and the package keeps waiting for the right file. One upload of a package at a time, two of a project's at once (409 upload_in_progress); an upload ends within an hour, waits a minute at most for its next bytes and, after its first minute, keeps up 256 KiB a second on average (400 upload_too_slow). Sent again after it arrived, the same token answers 409 package_uploaded. Emits stores.package.changed (uploaded).
Called by .
Path
package_idstring (uuid) · requiredThe package's id.Headers
Palbase-Upload-Tokenstring · requiredThe package's upload token.curl -X PUT "https://<your-ref>.palbase.studio/stores/packages/<package_id>/artifact" \
-H "content-type: application/octet-stream" \
--data-binary @fileResponses
200The package
400Validation failed or a required field is missing
401The upload token is wrong or expired
409The package has its build already (`package_uploaded`), or an upload of it, or two of the project's, are under way (`upload_in_progress`)
411The upload has no Content-Length
413The .ipa is too large
422Not an app's .ipa (`not_an_ipa`; one declaring it unpacks to more than 20 times its size, past 256 MiB, is not one either), another app (`wrong_bundle`), another build number (`wrong_build_number`), or no version (`no_version`). An Android build that is neither a bundle nor an APK (`not_an_aab`), an APK that cannot be read (`not_an_apk`), or one Android Studio's Run made, which only adb installs (`test_only_apk`). An APK's own signature is not kept: Palbase signs it with the app's upload key.
429Over the project's request limit or quota
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation UploadArtifact of stores's contract.