There's a new home for Articles. Find Articles on Our Product Support Page.
I made a few changes, but now getting a (401) Unauthorized error, not sure what else I'm missing.The Curl API command for moving device groups:curl -X PUT --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer Very long token" -d "\"\\\\RootFolder\\New folder\"" "https://SOTIServer.com:443/MobiControl/api/devicegroups/%255C%255CRootfolder%255COld%2520folder%255CSourceFolder/path" The Powershell call that I have so far, that doesn't work: $folderX="SourceFolder" function MoveDir ([string]$Name, [string]$Token){ $Path = "%255C%255CRootfolder%255COld%2520folder%255C" + $folderX$body = @{}$body = "`"\\RootFolder\New Folder`""$body = $body | ConvertTo-Json $Header2 = @{}$Header2["Authorization"] = "Bearer " + $Token try{$response2 = Invoke-restmethod -Uri https://$MCFQDN/mobicontrol/api/devicegroups/$Path/path -ContentType "application/json" -Method PUT -Body $body -Headers $Header2 }catch{$($_.Exception.Message)}}
Is there a way to change the device name with the REST API? I am using the API already to move devices to different folders and change the user of a device. But I couldn't find out if it is possible to change the name nor other attributes except of custom attributes. Thanks for you help! Cheers,Andy
Looking to create device groups (a few hundred) from a list in a text file. I'm most familiar with powershell, but I've not worked with API's or security tokens before. Does anyone have a template or sample scripts that they would be willing to share?
SOTI mobicontrol API allows to move devices between groups using device identifiers. However, in WebConsole, the only way I've found so far is through Device Relocation Rule, which requires you to set custom attributes. Is there analog of "POST /devicegroups/{path}/members" API method in WebConsole?
Hi, we are working with the API of mobicontrol/soti and that works great.There is only 1 think i can't find: we want to Remote Control an Android device by clicking on 1 button from our own application. Does anybody know if this is possible? Example (i hope): https://sXXXXXXX.mobicontrolcloud.com/MobiControl/DeviceManagement/GetRemoteControlSharedDataHtml5?DeviceId=123456789abc Thanks for your reply
Hello, I am trying to create groups on Mobicontrol through API and I did create a json file for multiple groups. It is working when I post to MobiControl/api/devicegroups/ and body contains { "Name": "group A", "Path": "\\\\Root\\Groups\\Group A", "Icon": "Green", "Kind": "Regular" } but it is not working when I post to MobiControl/api/devicegroups/ and body contains [{ "Name": "group A", "Path": "\\\\Root\\Groups\\Group A", "Icon": "Green", "Kind": "Regular" }, { "Name": "group B", "Path": "\\\\Root\\Groups\\Group B", "Icon": "Green", "Kind": "Regular" }] I am getting back the following error message. { "$type": "ErrorDetails", "ErrorCode": 0, "Message": "Contract validation failed", "Data": [ "deviceGroup: Error parsing value" ], "HelpLink": null} Is there any way to create multiple groups at once through the API? I am just wonder if the body has to be different when trying to create more than 1 group at once. Thank you.
Hi All Android devices have hostnames like android-552ce9e60fd098c7. I can confirm this with adb shell: netprop net.hostname I used the api query GET /devices/{deviceId}. But the attribute "HostName" is the ip address instead of the hostname. Is there a way to read the correct hostname through the api? Thank you and best regards Markus
Hi, you have no idea how to install/restart APIs the remote control? The same location and installation.
Where can I get these?
SOTI MobiControl has an API. What kind of things can I use it for?
Top-tier experts who are delivering outstanding content. Should have more than 7000 points.
Experts who are consistent with great content. Should have more than 1000 points.
Highly experienced members with valuable inputs. Should have more than 700 points.
Beginners taking the initiative. Should have more than 500 points.
New contributors starting their journey. Should have more than 250 points.