macadmins / macadmins/jamf-pro-sdk-python
[Bug] preview/mdm/commands deprecated & removed which breaks send_mdm_command_preview() method.
Open
@liquidz00 is already working on this.
Since Aug 13, 2025.
bug
- Dominant language
- Python
- Stars
- 69
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Steps to Reproduce
Attempt to push a mdm command using send_mdm_command_preview() method.
import jamf_pro_sdk
from jamf_pro_sdk.models.pro.mdm import SetRecoveryLockCommand
bobs_managementId = '1234'
newPass = 'longandcomplex'
command_out = client.pro_api.send_mdm_command_preview(
management_ids=[bobs_managementId],
command=SetRecoveryLockCommand(
newPassword=newPass)
)
print("Command ID: " + str(command_out))
Expected Result
Command sent and command ID returned
Actual Result
error 404 endpoint not found for /preview/mdm/commands
System Information
Python 3.10
Jamf 11.19.1
SDK is running 7a1 but didn't see anything related in the 8a1 update but will update and check.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.