Setting a computer to "Managed" via the API

honestpuck
Contributor

Hey,

OK, I'm using python-jss to retrieve a computer record. I'm then using computer.find to set "general/remote_management/management_password_sha256" to the right SHA password (retrieved from another computer record) and setting "management_username" to a valid name and "managed" to 'true'.

When I try and save back to the JSS I get "Response Code: 409 Response: Conflict. Error: Management password is required"

Anyone got any ideas? The account I'm using for testing has total access I think.

1 REPLY 1

honestpuck
Contributor

I figured out the answer after someone gave me a hint. You need to add the XML "management_password" and put the password in plain text in there.