Update application APK
POST
/api/v2/upload/applications/{application_id}/update-apk
const url = 'https://mmp.affise.com/api/v2/upload/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://mmp.affise.com/api/v2/upload/applications/1/update-apk \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form apk=@fileUpdate the APK file for an existing application. This endpoint uses upload token (JWT) passed as Bearer token instead of standard Sanctum token. The application must have app_status of “apk” to use this endpoint.
Base URL: https://mmp.affise.com
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The application ID.
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 ”Success
Media type application/json
object
message
string
apk_url
string
Example
{ "message": "Application APK successfully updated", "apk_url": "https://storage.example.com/apks/app-v2.apk"}Invalid status
Media type application/json
object
message
string
errors
object
apk
Array<string>
Example
{ "message": "The given data was invalid.", "errors": { "apk": [ "Application not in status apk" ] }}