palbaseDocs

Palbase Stores · API

PUT/stores/apps/{app_id}/version

Prepare the App Store version

Writes the version's fields, its build, how it is released, the review's details, the content rights statement and a free price — what can change until it is sent. Makes the version when the app has none that can change.

Called by your server, with the project's secret key.

Path

app_idstring (uuid) · requiredThe app's id (the registry's: the same app in every environment).

Headers

Idempotency-Keystring · optionalMakes the write safe to send again (at most 255 characters). A retry with the same key and the same request gets the first answer back, marked `Idempotent-Replayed: true`, and changes nothing; the same key with a different request is refused with 422, and while the first request still runs a retry gets 409 with Retry-After. Answers are kept for 24 hours.

Request body

version_stringstring · optionalMakes the version when the app has no editable one, or renames it (1.2.3).
build_numberinteger · optionalThe TestFlight build App Review gets (its version is the App Store version's).
copyrightstring · optionalThe version's copyright (2026 Your Company).
release"manual" | "after_approval" | "scheduled" · optionalWhen it goes out once approved.
release_atstring (date-time) · optionalA scheduled release's time.
phasedboolean · optionalRelease it in phases over seven days.
uses_third_party_contentboolean · optionalThe content rights statement: the app shows, contains or reaches third-party content.
price"free" · optionalfree makes an app with no price free everywhere.
reviewobject · optionalWhat App Review is told; the demo account's password goes to Apple and is never kept or read out.
territories"all" · optionalall: an app sold in no country or region is sold in every one, and in those Apple opens later; one sold somewhere keeps its countries (they are set in App Store Connect).
app_privacy"published" | "unpublished" · optionalApp Privacy has no API: published says the app's privacy details were published in App Store Connect, and the missing list stops asking for them; unpublished takes it back. Apple refusing a submission for App Privacy takes it back too.
curl
curl -X PUT "https://<your-ref>.palbase.studio/stores/apps/<app_id>/version" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"version_string":"string","build_number":0,"copyright":"string","release":"manual","release_at":"2026-01-01T00:00:00Z","phased":false,"uses_third_party_content":false,"price":"free","review":{"contact_first_name":"string","contact_last_name":"string","contact_email":"string","contact_phone":"string","demo_account_required":false,"demo_account_name":"string","demo_account_password":"string","notes":"string"},"territories":"all","app_privacy":"published"}'

Responses

200The version

400Validation failed or a required field is missing

401Missing or invalid API key

403Not the project's secret key; or a change to the platform's own project (`owner_only`) without its owner's access token (X-Palbase-Owner) or its operator's token (X-Palbase-Operator) beside the key. An owner's sign-in that is not a passkey one from the last 15 minutes is 401 `insufficient_user_authentication`.

404No such secret, or no such version

409The environment is full, or a request with this Idempotency-Key is still running

422The Idempotency-Key was sent with a different request, or the request cannot be done as asked

429Over the project's request limit or quota

502App Store Connect could not be reached; retrying is safe

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation PrepareAppStoreVersion of stores's contract.