Upload API

Streamline your build process and upload your IPA and APK builds directly to Updraft.

Method

PUT https://getupdraft.com/api/upload

Parameters

Name

Required

Description

Environment App Key

Yes

Your App key/ token. You find it in 'Edit App'

API Key

Yes

Your API key/ token. You find it in your profile: https://getupdraft.com/dashboard/profile/tokens

app=@

Yes

Path_to_your_app_file (ipa or apk)

whats_new

Additional release notes for this uploaded build. This text will be added to all email notifications.

build_type

You can also specify the type of assembly.

custom_Branch

You can also specify name of your branch you deployed your build.

Open your Terminal/CMD and type in following command with your path to the file you want to upload, your environment app key and your API key:

Error Codes

In the case of an error, Updraft will return a JSON with status => fail and code with one of the values in the list below.

Error Code

Description

1

Incorrect file

2

This version of your build already exists

3

There is already a newer version uploaded, this version you are trying to upload is older.

4

This is another application and doesn't match with the application in your project

5

This is a different platform type of your application

6

Your storage space is full. Please upgrade your priceplan.

Warning

You are uploaded an already existing build to your project (same version and same build version)

CURL Upload

curl -X PUT https://getupdraft.com/api/app_upload/YourEnvironmentAppKey/Your APIKey -F app=@/Users/Admin/Downloads/yourapp.apk

CURL Upload with parameters

curl -X PUT https://getupdraft.com/api/app_upload/YourEnvironmentAppKey/Your APIKey -F app=@/Users/Admin/Downloads/yourapp.apk -F whats_new=NewBuild -F custom_branch=Develop

Where can I find my API Key?

You can find your API Key in your Profile.

How can I create a new API Key?

You can, just click on the link 'generate new API Key'.