Create Configuration Profil with Custom Settings through API

anverhousseini
Contributor II

Hi Jamf Nation!

How do I create a configuration profile with "custom settings" through the API? If I make a POST the configuration profile is empty even if the command was running without errors.

Here is an example header (I copied it from an existing configuration profile, created manually in Jamf Pro):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<os_x_configuration_profile>
    <general>
        <name>defaultToStandardPreset</name>
        <category>
            <name>Category Name</name>
        </category>
        <uuid>920C78BC-273F-4981-A06E-C71A883D25CC</uuid>
        <redeploy_on_update>Newly Assigned</redeploy_on_update>
        <payloads>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;&lt;dict&gt;&lt;key&gt;com.apple.print.preset.defaultToStandardPreset&lt;/key&gt;&lt;true/&gt;&lt;/dict&gt;&lt;/plist&gt;</payloads>
    </general>
    <scope>
        <all_computers>true</all_computers>
    </scope>
</os_x_configuration_profile>

Any idea?

1 REPLY 1

vanschip-gerard
Contributor

I also would like to know this.