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",
}
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"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With