I am trying to export groups XML sheets from the JPS via API.
When running the following script, i get an error, what is wrong? The Api Account has full access so its not a permission issue.
#!/bin/bash
curl -ksu APIuser:APIpass -H "accept:xml" https://jamfserver.com:8443/JSSResource/mobiledevicegroups/id/99 | xmllint -format - > ~/Desktop/test.xml
Produces the following Error
-:1: parser error : Start tag expected, '<' not found
{"mobile_device_group":{"id":99,"name":"Test Group","is_smart":false,"criteria
^
Can't for the life of me figure this out
I think i'm missing a flag after the format - (hyphen) then what>
xmllint -format -**HERE** >