Update application apk version
POST
/api/v2/client/applications/{application_id}/update-apk
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/update-apk';const form = new FormData();form.append('apk', 'file');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.affisemmp.com/api/v2/client/applications/1/update-apk \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form apk=@fileAuthorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
1Request Body required
Section titled “Request Body required ” Media type multipart/form-data
object
apk
required
The APK file to upload.
string format: binary
Responses
Section titled “ Responses ” Media type application/json
object
message
string
apk_url
string
Example
{ "message": "Application APK successfully updated", "apk_url": "https://downloads.affattr.com/public/applications/apk/com.example.app.apk"}