Need help fast? Ask Pulse AI and get instant support.

Go back to homepage

How to format action parameters in REST API calls

AG
Allen Gulbrand
Island Technology Networks Inc. (Auditmacs)

Hey guys!

I am trying to send a message to a windows desktop legacy device and am having trouble with the body.

I am "Trying it Out!" on the api site https://xxxxxxx.mobicontrolcloud.com/MobiControl/api. 

Method 1

{
"Action": "SendMessage",
"Message": "Hey There!",
"DisplayDuration": "NO_TIMER",
"MessageType": "3"
}

 Method 2 

{
"Action": "SendScript",
"Message": "showmessagebox 'This is a test message with Yes/No button and no timer' NO_TIMER 2"
}

Both are not working. Client ID, Client Secret, Username, Password, and Device ID are configured correctly. What am I doing wrong?

Thank you for your help!

7 years ago
Windows
ANSWERS
AV
Andrei Vesselkov
7 years ago

Hi Allen,

I tested on version 14.2 and the following syntax worked for me:

{
"Action": "SendMessage",
"Message":"Test Message Here",

"DisplayDuration":"UntilPressOk",

"MessageType":"Information"
}

Regards,

Andrei Vesselkov