Closed jausmus-wayspring closed 12 months ago
@jausmus-wayspring You need to instantiate the command object you're passing. Can you try:
logout_user = client.pro_api.send_mdm_command_preview(
management_ids=["<ID>"],
command=LogOutUserCommand()
)
Few things I will start on related to this issue:
send_mdm_command_preview
method needs example usage in the doc string. This is something that is going to be added across all API methods.LogOutUserCommand
model is missing from the Pro models doc page. I'll add it back in, and the models will include example usage like the API methods.Thanks @brysontyrrell, instantiating it resolved the issue.
When I run the send_mdm_command_preview with a UUID and a command, I get a pydantic.error_wrappers.ValidationError
Steps to Reproduce
All empty quotes have valid values.
Expected Result
The MDM command is sent successfully.
Actual Result
I'm not sure what I'm doing wrong here and I can't find any documented examples of using this method.
System Information