Exchange already uploaded app version

Exchange an already uploaded app version.

Sometimes it makes sense to replace an already uploaded app version without changing the chronology in the app version history.

  1. Go to the build history / app version history page

  2. Select your app version you would like to exchange

  3. Click on exchange file button

  4. Upload your new app file

  5. Add a comment

  6. Click on save

The newly uploaded app file will be exchanged and a change history will be added to the specific app version details with information about the user who changed the file, the added comment, and the timestamp of the file exchange.

If an app file is replaced, only the app file and the meta-information extracted change, the previously provided public installation link will redirect the user to the new app file.

Exchange the already uploaded app version with CURL

The exchange with CURL needs to steps:

  1. First, you need to upload your app version to the server

  2. Secondly you need to replace an existing app version

First of all you need to pre-upload the new app version to the Updraft server:

post
Pre-upload new app version

POST https://getupdraft.com/api/applicationadd/?preload=1&app={{ AppID }} (content-type: multipart/form-data) app={{ BuildFile }}
Request
Response
Request
Headers
content-type
optional
object
multipart/form-data
Authorization
optional
object
Authorization Token
Response
200: OK
{“preload_path”: {{ preload_path }},
“title”: {{ AppTitle }},
“version”: “1.1",
“build_version_number”: “4",
“version_exist”: true
}

put
Replace existing app file

Put PUT https://getupdraft.com/api/versions/{{ buildID }}/ (content-type: application/json) {“preload_path”: {{ preload_path }}, “comment”:“”}
Request
Response
Request
Headers
Authorization
optional
object
Authorization Token
Response
200: OK

Example

Example to replace the app version file with the preload_path (response from the first request):

PUT https://getupdraft.com/api/versions/19018/ {“preload_path”: “tmp/m2048.ipa”, “comment”:“”}