Hi I've created this script utilizing the jamf API to wipe some 2015 intel MacBook Airs, but it's locking the devices instead of wiping them. I using the existing json format since the classic api's erase command has been deprecated. What am i running into here?
`
#!/bin/bash
# Define credentials
response=$(curl -v -u "GVC4_API_Admin_Migration:Change2025" https://gvc4.jamfcloud.com/api/v1/auth/token -X POST)
bearerToken=$(echo "$response" | jq -r '.token')
# Device IDs
computerIDs=(2403 2636 2619 2595)
for comID in "${computerIDs[@]}"
do
echo "Sending erase command to computer ID $comID..."
#curl -X POST \\
#-H "Accept: application/json" -H "Authorization: Bearer ${bearerToken}" \\
#"https://gvc4.jamfcloud.com/JSSResource/computercommands/command/EraseDevice/passcode/123456/id/$comID"
curl -X 'POST' \\
"https://gvc4.jamfcloud.com/api/v1/computer-inventory/$comID/erase" \\
-H "Authorization: Bearer $bearerToken" \\
-H "Content-Type: application/json" \\
-d '{ "pin": "123456" }'
done
`