jamf-pro-sdk-python icon indicating copy to clipboard operation
jamf-pro-sdk-python copied to clipboard

[Feature Request] Add support for redeploy_management_framework_v1 to ProApi

Open jp-cpe opened this issue 6 months ago • 0 comments

Proposal

Add a method to the ProApi class that allows developers to trigger a redeployment of the Jamf management framework for one or more computers using the POST /v1/jamf-management-framework/redeploy/{id} endpoint.

This is a supported Jamf Pro API endpoint and is useful for client remediation workflows, especially in cases where the Jamf framework becomes unresponsive or needs to be reinstalled for re-enrollment scenarios.

This brings the SDK closer to full parity with available Jamf Pro API endpoints and complements existing functions like renew_mdm_profile_v1.


Example

client.pro_api.redeploy_management_framework_v1(computer_ids=123)

# or multiple
client.pro_api.redeploy_management_framework_v1([123, 456, 789])

# returns
RedeployFrameworkResponse(deviceId='123', commandUuid='...')  # per computer

Additional Details

  • Endpoint: POST /v1/jamf-management-framework/redeploy/{id}

  • Response schema: { "deviceId": "...", "commandUuid": "..." }

  • Real-world use cases:

    • Resolving devices stuck in partial management state (no check-in, no inventory update, but APNs still functional)
    • Redeploying framework after failed PreStage enrollment

I have a working implementation and would be happy to submit a PR if accepted.

jp-cpe avatar May 14 '25 17:05 jp-cpe