How to Move a Thing to Different Things Group?

This guide will show you how you can move your Thing (SIM card) from one Thing Group to another Thing Group.

To move Thing to another Thing Group, please use following request:

curl -X PUT "" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer <<<_TOKEN_HERE_>>>" -d "{ \"ThingId\": \"<<<_THING_ICCID_ID_>>>\", \"ThingsGroupId\": \"<<<_THING_GROUP_ID_>>>\"}"

Please note that the above shown command needs to be replaced with information: <<<_TOKEN_HERE_>>> - replace with your token. You may obtain Token, by running Login Token API command. <<<_THING_ICCID_ID_>>> - replace with ThingId_ICCID_ABC, where ABC is your thing ICCID. Example: ThingId_ICCID_8912372646888991 <<<_THING_GROUP_ID_>>> - replace with your Monogoto ThingGroupID. If needed this API can be tested and used in the Monogoto portal following this path: Thing PUT /thing/replaceGroup/

Example of request to show information about all of our Thing Groups:

curl -X PUT "" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" -d "{ \"ThingId\": \"ThingId_ICCID_8912372646888991\", \"ThingsGroupId\": \"ThingsGroupId_e4642f60-bee1-4g467-93g46a-cee6ca46vb17a\"}"

Expected response should be empty: