API sendscript (Javascript)

Solved

Hi all,

is there someone who can tell me if or how it's possible to sende javascript via the "sendscript" api call?

Legacy script is working fine but i have a javascript which would be nice to do via api and scfript instead of the console.

Ok, found it now myself, there's an parameter available named "ScriptType" which does the trick.

@Soti, may i request fully API documentation regarding possible parameters for example the "​/devices​/{deviceId}​/actions" Part (and maybe others too)?

It's really bad doing trial and error.

3 years ago
SOTI MobiControl
ANSWERS
K
KCMOD@SOTI Silver Contributor
3 years ago

Hello Rafael,

Thank you for posting on SOTI Central!

All the information is available on the following page: https://serverfqdn/mobicontrol/api/


Please let me know if you have any other questions.
If the above answered your question, please mark this post as solutioned.


Regards,
Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net

RS
Rafael Schäfer Diamond Contributor
3 years ago

Joking?

"All the information is available on the following page"

Now go through the information you posted above (how do you think I'm working with the api when not looking into these information?) and tell me where the information about the additional needed parameters are shown?

In my case "ScriptType" for the "Sendscript" Action... there's nothing or I must be blind!

And the information "some actions may need additional parameters" is not really helpfull when not telling how they are called.

JD
John Doe Platinum Contributor
3 years ago

Solution
RS
Rafael Schäfer Diamond Contributor
3 years ago

Thanks a lot, i searched for the headline and now saw that this information is on the bottom of the site -.-
Haven't taken a look there and there's no hint or link to this (would be nice then).

So sorry @KCMOD but in general it would be nice to one of following:

1. Put information where they are needed and not somewhere else.

2. Or link (or give a hint) to the relevant information.

K
KCMOD@SOTI Silver Contributor
3 years ago

Hello community members,

John, thank you for your reply and for the screenshot that you shared!

Rafael, I am glad that your question is answered now.
In the future, please formulate the request precisely on what you are looking for, so we (moderators) and other community members can assist you accordingly and please ensure to be polite in all your communications on SOTI Central. Even if something is unclear to you, you can politely ask to confirm, and we will be happy to assist.

Have a great day everyone!

Regards,
Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net