I am trying to use the /devices/admin-actions/REBOOT API. The documentation at https://as845.awmdm.com/api/help/#!/apis/10002?/ says that there is a required payload body, but the documentation lists the example as:
{ "metadata": { "Text value": "Text value"} }
I have attached a screenprint of the api documentation in question.
The reboot function works when coming from the Workspace One console, but I am unable to get a valid API call to do the reboot. Can anyone provide a curl example of what the correct syntax is for submitting a reboot request using the API?
You need to input your own XML with the device targets, if you select 'Model' next to the example value it'll give you an idea of formatting ;
'BulkAdminActionsV1Request {
Assigned Devices List.
,Metadata Associated for the Action.
}
AssignedDeviceV1Model {
}
inline_model {}'
" if you select 'Model' next to the example value it'll give you an idea of formatting"
That's the problem, the Model next to the example value is incorrect and invalid. It is:
{ "metadata": { "Text value": "Text value" } }
I am seeing a correct/valid XML/JSON payload if you have one.
hello,
Did you succed to launch the reboot action from API ? i have an initialized status on the console and the action does not execute the reboot .
Thank you in advance
Regards,