macadmins / macadmins/jamf-pro-sdk-python

[Bug] preview/mdm/commands deprecated & removed which breaks send_mdm_command_preview() method.

Open
#68 1 comment 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.