Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Airwatch API Internal Application Install : Begin Internal Application Install

Currently trying to integrate Airwatch deployment to our build process. After uploading out IPA to airwatch through Upload Blob the Being Internal Application POST request requires both a TransactionId obtained from uploading an application as chucks and a BlobId obtained from Upload Blob. If I omit the TransactionId from my request the request returns an Internal Server Error, but if left in, returns a 4XX error saying the transaction id does not exist or is invalid.

Request:

{
"BlobId":"<omitted>",
"DeviceType":"2",
"TransactionId":"a",
"ApplicationName":"Airwatch Test",
"SupportedModels":
{
    "Model":
    [{
        "ModelId":1
    }]
},
"PushMode":"Auto",
}
like image 497
Fluzzarn Avatar asked Feb 26 '26 16:02

Fluzzarn


1 Answers

If you have sent your binaries via the UploadBLOB call, you will need to specify the BlobId but should leave the TransactionID out of the JSON. You are probably receiving the "400" because you are missing the "ModelName" tag from the Model object and the comma after the PushMode statement should be removed to make your JSON valid. If your authorization header and tenant key header is setup correctly, the following JSON payload should work with the "BeginInstall" call.

{
"BlobId":"<add you blobid here>",
"DeviceType":"2",
"ApplicationName":"Airwatch Test",
"SupportedModels":
{
   "Model":
   [{
     "ModelId":1,
     "ModelName":"iPhone"
   }]
},
"PushMode":"Auto"
}
like image 140
Adam Kersten Avatar answered Feb 28 '26 09:02

Adam Kersten



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!