Create app version
Changed onCreate a new version of an app from an existing version's code, without uploading a new package. The new version reuses the source version's code bundle and Towerfile, and can override per-version settings such as the run size and parameters. Like a deploy, the new version is then deployed to the target environment(s).
Request
- Base URLhttps://api.tower.dev/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The name of the app to create a version for.
Query parameters
The environment to deploy the new version to.
Whether to deploy the new version to all environments for this app. If true, the 'environment' query parameter is ignored.
Headers
Optional opaque key that makes this request safe to retry: if a version of this app already has the key and the same code bundle, run size and parameters, that version is reused (and deployed to the target environments). Reusing a key with different code or settings returns 409 Conflict. When omitted, the server derives a key from the code bundle, run size and parameters, so repeating an identical request also reuses the existing version.
Optional account-scoped monotonic sequence token used to reject out-of-order writes. See the fence documentation for the acceptance window and retry behavior.
Request body
Example request
{
"$schema": "https://api.tower.dev/v1/schemas/CreateAppVersionBody.json",
"run_size": "basic.large",
"source_version": "v3"
}Response
Created
Example response
{
"$schema": "https://api.tower.dev/v1/schemas/CreateAppVersionResponse.json"
}Changes
- info
endpoint added
- info