How do I move a device to a different device group using API Post in SOTI Mobicontrol?

Solved
E
EddieN
MV Transportation, Inc.

Hello Everyone,

I'd like your help to understand how to move a device from one device group to another. According to the API documentation there are 2 ways that we can go about this. However, I haven't succeeded in either of ones. 

Please advise. Thank you

1. POST /devices/{deviceId}/actions

  • Send Actions to a Device

2. POST /devicegroups/{path}/members

  • Add or Move a Devices to a Device Group
2 years ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
2 years ago

Use PUT /devices/{deviceId}/parentPath for a single device or (as you already found) POST /devicegroups/{path}/members for multiple devices.

Solution
E
EddieN
2 years ago

Hello Refael,

I tried that PUT method in the past but no success. I have alos tried both encoded path and referenceid in various format but always get  "Message": "Unauthorized access or invalid reference to specified object" in return. Any other ideas?

E
EddieN
2 years ago

Updated:

I was able to perform this action using POST /devicegroups/{path}/members, it didn't work as before because I was using wrong datatype where deviceids asks for Array[string].

Thank you

M
MPMOD@SOTI
2 years ago

Hi EddieN,

Thank you for posting on SOTI Pulse! 

I am glad to see that your issue was resolved. 

Please feel free to reach out to us if you have any further questions in the future.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net lDiscussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter