The old UnmanageDevice API endpoint has been deprecated in Jamf Pro 11.21. Script needs to be updated to the https://yourServer.jamfcloud.com/api/v1/computer-inventory/{id}/remove-mdm-profile endpoint, please. Thanks.