Skip to content

Add redeploy_management_framework_v1 to ProApi#84

Merged
liquidz00 merged 2 commits into
macadmins:mainfrom
homebysix:redeploy-framework
Jun 4, 2026
Merged

Add redeploy_management_framework_v1 to ProApi#84
liquidz00 merged 2 commits into
macadmins:mainfrom
homebysix:redeploy-framework

Conversation

@homebysix
Copy link
Copy Markdown
Contributor

Adds ProApi.redeploy_management_framework_v1(computer_id), which triggers a redeployment of the Jamf management framework to a computer via POST /v1/jamf-management-framework/redeploy/{id}.

The method takes a single computer ID and returns a new RedeployManagementFrameworkResponse model (deviceId, commandUuid), matching the endpoint one-to-one. The model is added to the Pro API model reference docs, and a unit test covers its parsing.

I'm open to suggestions if you'd rather accept a list of computer IDs instead of a single computer ID, but I thought matching the API endpoint 1-to-1 was a better start.

Closes #61.

@liquidz00 liquidz00 self-assigned this Jun 4, 2026
@liquidz00 liquidz00 self-requested a review June 4, 2026 16:30
Copy link
Copy Markdown
Collaborator

@liquidz00 liquidz00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@homebysix agreed on matching the endpoint 1:1 being the better call. Users can iterate over computer ids and call the command if needed, I personally think the situation of redeploying the framework to a single machine is more likely than multiple.

Separately, thank you for writing the tests and including in source docs! 🫶🏻. Everything looks good to me.

@liquidz00 liquidz00 merged commit 71fe43e into macadmins:main Jun 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add support for redeploy_management_framework_v1 to ProApi

2 participants