Posted on 09-17-2015 03:56 AM
Hello,
I'll try to explain as briefly as possible here
I simplified the xml examples, I'm just trying to explain the situation here.
I currently have 2 Profiles:
Profile 1
<configuration_profile>
<general>
<id>1</id>
<name>NoCamera</name>
<site>
<id>1</id>
<name>First Site</name>
</site>
</general>
</configuration_profile>
Profile 2
<configuration_profile>
<general>
<id>2</id>
<name>NoCamera</name>
<site>
<id>2</id>
<name>Second Site</name>
</site>
</general>
</configuration_profile>
Both profiles can be created without any issues.
The problem occurs when updating the profile (with id = 2) using the Api. It returns me error 409 duplicate name. However, this is allowed when creating a new profile using the Api? is this a bug in the Api?
Note: When updating that profile through the Casper suite interface it also works without any issues.
The Update Example - Trying to add a group to the scope of the profile
<configuration_profile>
<scope>
<mobile_device_groups>
<mobile_device_group>
<id>5</id>
</mobile_device_group>
</mobile_device_groups>
</scope>
</configuration_profile>