We are currently trying to automate the release process using the MobiControl API and we've encountered an issue where the Configurations in a Profile get lost when a new Profile Version is created via MobiControl/api/profiles/{referenceId}/packages
Our automation process is roughly like this:
- Get a token.
Send POST to MobiControl/api/token
This works. - Upload a new version of our app
Send POST to MobiControl/api/packages
This works. - Retrieve the Packages list for the Profile we want to update
Send GET to MobiControl/api/profiles/{$profileReferenceId}/packages
This works. - Update the Profile, using the list from the step before and updating our app version number to the latest but leaving other packages as is
Send PUT to MobiControl/api/profiles/{$profileReferenceId}/packages
This works BUT we cannot set the Profile Configurations and they do not seem to get copied like when we do this manually in MobiControl WebConsole by doing Edit on a Profile. - Assign the Profile to a Device Group to push out the latest version of the app
Send PUT to MobiControl/api/profiles/{$profileReferenceId}/assignment
So this leaves us with some questions:
- Is this a bug where the Profile Configurations don't get copied over to a new Version when using the API?
- Is there any way to set the Profile Configurations using the API?
Here is a screenshot of how the Profile looks before running the automation process:

Here is a screenshot of how the Profile looks after running the automation process:

