If the end user would like to use his own configuration, you can deploy an app using the configuration type unversioned
. Again, it is required to have a configuration ID as a unique identifier of the configuration.
Use this request to deploy an application to one or multiple Edge Devices:
curl -i -X POST \
-H "Authorization:<your-authorization-token>" \
-H "Content-Type:multipart/form-data" \
-F "infoMap= {\"configs\":[{\"configId\":\"<your-configuration-id>\",\"fileId\":\"<unique-file-id>\"}], \
\"devices\":[\"<your-device-id>\"]}" \
-F "<unique-file-id>=@\"/home/Desktop/temp/example.txt\";filename=\"example.txt\"" \
'https://<your-iem-url>/portal/api/v1/batches?appid=<your-app-id>&operation=installApplication'