Community - SOTI MobiControl

Community - SOTI MobiControl

There's a new home for Articles. Find Articles on Our Product Support Page.

SOTI MobiControl Discussions


  • 0 votes 1 answer

    /packages/v2

    Hello,  Does anyone have a working example of using the /packages/v2 API using Powershell or another scripting language? When I try to call this API I either get a return code of 415 or 500 depending on how I call it. I suspect that it is my handling of reading the APK and PreInstall scripts and placing them in the call but I can not prove it.  So far SOTI has not been able to give we a working example of using this code (which is disappointing given that it is their API).  I appreciate any insights.  Jim

    SOTI MobiControl
    2 years ago
  • 0 votes 1 answer

    MobiControl as PowerBI Data Source

    Hi There, i'm looking on how to add Mobicontrol as a data source of PowerBI to build customized report and combine devices data with other data sources. Any idea on how this could be done? MobiControl versions: 15.4.3.1012  (Cloud)

    SOTI MobiControl
    2 years ago
  • 0 votes 4 answers

    MobiControl API from Powershell Solved

    I am a Powershell novice. Does anyone here use Powershell to execute MobiControl APIs?I am having problems trying to connect to the MobiControl server. I get the following error:  The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.Thanks in advance. 

    SOTI MobiControl
    2 years ago
  • 1 votes 4 answers

    Mobicontrol API Use in a Pipeline

    Does any have any experience using the Mobicontrol APIs for a development pipeline?Our development team wants to automate the process of loading android APKs into Mobicontrol. While I understand the process adding a new version through the Web Console, I have no idea what it would look like using scripts and the APIs. I assume the process would be somewhat similar, add the package, then update the profile with the new version of the application but I am unsure.I currently use the package manager to add pre-install script. How would that play into this? Looking for some insight.  If you have done this, how well does it work? 

    SOTI MobiControl
    3 years ago
  • 0 votes 1 answer

    LicenseInfo via API

    Hello, I currently use the REST API to get certain stats from my devices. I would now like to get the expiry date on my support licenses, i will have this automatically checked by my network monitoring system. In the API doco (https://servername/MobiControl/api) i can see reference to a model called "LicenseInfo" containing "DaysToExpiry" How can access this info? what "get" request gets this info? Thanks Andrew

    SOTI MobiControl
    3 years ago
  • 0 votes 5 answers

    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.

    SOTI MobiControl
    3 years ago
  • 0 votes 0 answers

    Location SotiMobicontrol retrieve in snap

    I'm trying to retrieve the last location information using the SotiMobiControl API. I am wondering how the information can show in the map widget in soti snap not just the json. Is there any way that i could use to show the last location information of devices as a map not just json?

    SOTI MobiControl
    3 years ago
  • 0 votes 4 answers

    Authentication MobiControl API

    Hello, i want to try to build an app based for mobicontrol console using the soti snap. Inside the app, there is a login function. For this function, people who login to this app is the admin or user using their mobicontrol account. So they don't need to create another account in order to login the app and get the devices information from MobiControl. I have plan to using the MobiControl API. But, i have no idea which API should i use to authentication. Anyone can help me?Thanks

    SOTI MobiControl
    3 years ago
  • 0 votes 0 answers

    Bad Request (Invalid Client) Error

    I am using the below script to get the token from the mobicontrol api but it keep giving me Invalid Client error or Bad request. what could be the issue? I am using the correct clientid and secret and my credentials are also correct as I am able to login to the portal. Your help will be highly appreciated. $MCUsername = "MobiControl username goes here" $MCPassword = "MobiControl Password goes here" $MCFQDN = "MobiControl FQDN Goes here" $ClientID = "MobiControl API Client ID Goes here" $ClientSecret = "MobiControl Client Secret Goes here" # You may want to figure out a way to encrypt the Password and the Secret, that's best practice $IDSecret = $ClientID + ":" + $ClientSecret $EncodedIDSecret = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($IDSecret)) $Body = @{} $Body["grant_type"]="password" $Body["username"]=$MCUsername $Body["password"]=$MCPassword $Header = @{} $Header["Authorization"] = "Basic " + $EncodedIDSecret try { $response = Invoke-restmethod -Uri https://$MCFQDN/mobicontrol/api/token -Method POST -Headers $Header -Body $Body } catch { $($_.Exception.Message) } $Token = $response.access_token Write-Host "My MobiControl API Token is: $Token"

    SOTI MobiControl
    3 years ago
  • 0 votes 4 answers

    GET API for GCP

    We have some data hosted on GCP (Google cloud) and a API is published for the same. Can SOTI get that data and create a alert for all the devices in that network? If you can you please guide me to any samples or a documentation on the same. I am using Soti Cloud (version. 15.2.3.1033)

    SOTI MobiControl
    3 years ago
  • 0 votes 2 answers

    Modifying a Custom Attribute on an device by API & PS Solved Locked

    I am trying to make an API call to update one device in using the reference ID. I am able to fetch token but having issue when using PUT to update the device. Here is what i tried so far: ### Call API #Module and Configurations API Import-Module -Name "F:\SOTI_API\Mod-MobiControl.psm1" Set-TrustAllCertsPolicy $Token = Get-MCToken $MCFQDN = Get-MCFQDN #Core script $headers = @{} $headers["Authorization"] = "Bearer " + $Token $deviceId = "9c5c8e786faa050100171845214D2417" $AttributeValue = @{} $AttributeValue["customAttributeValue"] = "123" $body = $AttributeValue | ConvertTo-Json #PUT customAttributes Projet $result = Invoke-restmethod -Uri "https://$MCFQDN/mobicontrol/api/devices/$deviceId/customAttributes/Projet" -ContentType "application/json" -Method PUT -Headers $headers -body $body When trying to execute the above, getting below error:Invoke-restmethod : { "$type": "ErrorDetails", "ErrorCode": 0, "Message": "Échec de validation du contrat", "Data": [ "customAttributeValue: Error parsing value" ], "HelpLink": null }Au caractère Ligne:22 : 15+ $result = Invoke-restmethod -Uri "https://$MCFQDN/mobicontrol/api/devices/$d ... Any help is greatly appreciated.  

    SOTI MobiControl
    4 years ago
  • 0 votes 3 answers

    Modifying a Custom Attribute on an device by API Solved Locked

    I need to use the API : PUT /devices/{deviceId}/customAttributes/{customAttributeId} This API requires the CustomAttribute ID as a parameter and I don't know where to find it. I tested the GET /customattributes API to get the ID, but it's not part of the response. I also poked around in the DataBase, but I don't see a table name that allows me to direct my search to the CustomAttributes to retrieve the IDs. Has anyone experienced this problem?

    SOTI MobiControl
    4 years ago
  • 0 votes 2 answers

    How to use API to create custom Attributes on a group level Solved Locked

    Hello, I'm trying to edit my existing PowerShell script that created the device group but I'm a bit confused on the formatting needed for the custom attribute. For device group creation, I looked at the forums and copied the example of using: $devicegroup = @{} $devicegroup["Name"] = $Name $devicegroup["Path"] = $Path + $Name $devicegroup["Icon"] = "Red" $devicegroup["Kind"] = "Regular" I tried changing it around to try to mimic the json on the API page but not luck, even tried doing: $customAttribute = '{ "Attributes" : [ { "AttributeName":"StoreNumber", "AttributeValue":"1234"}]}' but that is also failing on me. Anyone have any suggestions?

    SOTI MobiControl
    4 years ago
  • 0 votes 2 answers

    API AppleSoftwareUpdateSchedule Solved

    Hello all,I would like to update Apple devices via the API I use:POST /devices/{deviceId}/actions { "Action": "AppleSoftwareUpdateSchedule"} do I have to add a parameter? as error I always get: { "$type": "ErrorDetails", "ErrorCode": 0, "Message": "Vertragsprüfung fehlgeschlagen", "Data": [ "actionInfo: Error parsing value" ], "HelpLink": null } I hope you can help meThanks

    iOS
    4 years ago
  • 0 votes 4 answers

    Profile Configurations goes blank when a new Profile Version gets created after doing a PUT on MobiControl/api/profiles/{referenceId}/packages

    We are currently trying to automate the release process using the MobiControl API and we've encountered an issue where the Configurations in a Profile get lost when a new Profile Version is created via MobiControl/api/profiles/{referenceId}/packages Our automation process is roughly like this: Get a token.Send POST to MobiControl/api/tokenThis works. Upload a new version of our appSend POST to MobiControl/api/packagesThis works. Retrieve the Packages list for the Profile we want to updateSend GET to MobiControl/api/profiles/{$profileReferenceId}/packagesThis works. Update the Profile, using the list from the step before and updating our app version number to the latest but leaving other packages as isSend PUT to MobiControl/api/profiles/{$profileReferenceId}/packagesThis works BUT we cannot set the Profile Configurations and they do not seem to get copied like when we do this manually in MobiControl WebConsole by doing Edit on a Profile. Assign the Profile to a Device Group to push out the latest version of the appSend PUT to MobiControl/api/profiles/{$profileReferenceId}/assignment So this leaves us with some questions: - Is this a bug where the Profile Configurations don't get copied over to a new Version when using the API? - Is there any way to set the Profile Configurations using the API? Here is a screenshot of how the Profile looks before running the automation process: Here is a screenshot of how the Profile looks after running the automation process:

    SOTI MobiControl
    4 years ago

Top 3 Contributors of The Week

View All

Earn Contributor Badge

More info
  • Diamond
    Diamond New

    Top-tier experts who are delivering outstanding content. Should have more than 7000 points.

  • Platinum
    Platinum

    Experts who are consistent with great content. Should have more than 1000 points.

  • Gold
    Gold

    Highly experienced members with valuable inputs. Should have more than 700 points.

  • Silver
    Silver

    Beginners taking the initiative. Should have more than 500 points.

  • Bronze
    Bronze New

    New contributors starting their journey. Should have more than 250 points.