question

newuser-cfc83b5c-d536-498b-b509-1d0f7b0dc342 avatar image

How to use App Submission API to update my APK

I want to use the below API to upload my APK to Store.

Can you help me how to get the values on it? And what things I need prepare?

https://s3-us-west-1.amazonaws.com/devportal-reference-docs/appsubapi/swagger-en/index.html#/Edits.apks/upload_1

apiVersion - appId - editId (I already have access_token)


apiandroid
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Thanks for posting. The values are as follows:

- the apiVersion for now is "v1";

- the appId is your app's package name / application ID;

- and editId you will get this value once you Post to /{apiVersion}/applications/{appId}/edits.

For example, in Python:


create_edit_path = '/v1/applications/%s/edits' % app_id
create_edit_url = BASE_URL + create_edit_path
create_edit_response = requests.post(create_edit_url, headers=headers)
current_edit = create_edit_response.json()

edit_id = current_edit['id']


10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.