Hi all,
I'm trying to create a smart group across multiple JSS contexts via the rest API, and not having much luck. Basically, I want smart group that contains computers which haven't checked in over 50 days. I'm using: curl -skfu username:password https://jssaddress:8443/JSSResource/computergroups/id/0 -T /pathtofile/NoCheckin.xml -X POST;
Here's my xml:
<?xml version="1.0" encoding="UTF-8"?><computer_group><name>No check-in</name><is_smart>true</is_smart><criteria><size>1</size><criterion><name>Last Check-in</name><priority>0</priority><and_or>and</and_or><search_type>more than x days ago</search_type><value>50</value></criterion></criteria><computers></computer_group>
I've used this technique to import policies, packages, and scripts, but I can't get it to POST my group. Has anyone done this? Or can you see what my xml is missing? I've also tried to post using id, and that also doesn't seem to work.
Thanks!
-tep