Skip to content

Update application APK

POST
/api/v2/upload/applications/{application_id}/update-apk
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=@file

Update 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

application_id
required
integer

The application ID.

Example
1
Media type multipart/form-data
object
apk
required

The APK file to upload.

string format: binary

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"
]
}
}