Change a user group

:zap: API Reference: Change a user group


📘

The method accepts Admin Access only.

There are 4 options to place a user in a certain group:

  1. Register a DeviceToken to a certain user group by providing unique group InstanceID and InstanceKEY Register a new SDK user. Check how to create a group and get its credentials here
  2. Use method Join a group. this method allow an individual user to join a specific group by providing the InviteCode
  3. Use Admin method Change a user group
  4. Move users via DataHub
curl --request POST \
  --url https://user.telematicssdk.com/v1/Management/users/instances/change \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJmNTJjMDMyOS0yZmNjLTRmNTItOTMxMy04MDhmNTNmZmQ1NjIiLCJqdGkiOiJjMTAwNTM1Mi01Y2ZjLTQ1YjQtOGE3Mi0yYzU4NTZlZWE4NzkiLCJpYXQiOjE2MjE4ODE1NTMsIkFwcGxpY2F0aW9uSWQiOiIyNiIsIkFkbWluRW1haWwiOiJhZG1pbkByYXhlbHRlbGVtYXRpY3MuY29tIiwiQWRtaW5Jc093bmVyIjoiRmFsc2UiLCJJbnN0YW5jZUlkIjoiYmFiNzFiN2Q5NzI4NGM3Yzk4YjQyMDUxMzNiN2RiMGIiLCJEZXZpY2VUb2tlbiI6ImY1MmMwMzI5MmZjYzRmNTI5MzEzODA4ZjUzZmZkNTYyIiwiQ29tcGFueUlkIjoiNGI2MmNjYzA4MWI3NGQzOWFkMTdjZGFmMzRhODIwZDYiLCJBcHBJZCI6IjU3NGY1MjA0NGI5OTQxZTFiOTgwNDUzZDcyODc4MzZhIiwiSXNBZG1pbiI6IlRydWUiLCJQZXJtaXNzaW9uIjoiQ29tcGFueUlkOjRiNjJjY2MwLTgxYjctNGQzOS1hZDE3LWNkYWYzNGE4MjBkNjpHb2QiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJHb2QiLCJuYmYiOjE2MjE4ODE1NTIsImV4cCI6MTYzMTQ4MTU1MiwiaXNzIjoid2ViQXBpIiwiYXVkIjoiaHR0cHM6Ly91c2VyLnRlbGVtYXRpY3NzZGsuY29tIn0.YFq5NGDmipd8ZryKJsYDdVb32sDn9wdfzrW49ajZZ--YPk-PgzTeZwIbOKyVGLlQsTo0b_zxeMF510V6xvtiKFDthgy6ycEv9A1Q8fB0NVlJgR10R7F8UoCzVRR_g-WBLnRtt28HFvd7NZ_IXEovzQscUDZS0-xBdTy8GedNFQwG1553mepz12nrDk31ET-ohr44wOMiDfrXlyBqXmzz9lbh8dfqEV6MPblXFmlH4N05twCiQHYFKigSWYwD1_Wxr1Pn405Jal2GkRET19sdN6lF9S5qhYCa-qSzueE9Xz9VEZ0mlReu1OXIvL2PL0YJqhS3Yg9aVuUzuge_1f4DDA' \
  --header 'Content-Type: application/json' \
  --data '
{
  "DeviceToken": "",
  "ToinstanceId": "",
  "Toinstancekey": ""
}
'

Where:
DeviceTokenDeviceToken - It is a unique User ID that is generated by Damoov telematics platform and used by Telematics SDK as a user identifier. SDK connects all telematics data to the DeviceToken and transfers to Damoov platform. Then the DeviceToken is used across all our APIs and services as a unique app user ID. - a unique user ID which you are going to move
ToinstanceId - the instanceId of a new group
Toinstancekey - the instancekey of a new group


Did this page help you?