Update Thing Name

This guide will show you how you can update your Thing anem via API.
Please note that in order to update Thing description we will need to run 2 API commands:

1st API command - get Thing cas value

Get Thing information
Add your Thing ICCID and Token in the GET request to successfully obtain the Thing info.

Example using cURL:

curl -X GET \
--url "{THING_ICCID}/" \
-H "accept: application/json" \
-H "Authorization: Bearer {YOUR_TOKEN}"
Example of response to our request:
"State": "ACTIVE",
"Status": "Serving",
"SubProfId": "SubProfId_5652ayf1-er9c-4914-a60b-630cc4af0a2b",
"ThingId": "ThingId_ICCID_8912372646888991",
"Type": "MobileSubscriber",
"VcsAccountId": null,
"cas": 1236781245913489491,
"ActualUsage": {
"MO_SMS_CDR_": 3,
"Data_": 45919688,
"Voice_": 0,
"Alarm": 0

2nd API command - Update Thing Information

Put Thing information

Example using cURL:

curl -X PUT \
--url "" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {YOUR_TOKEN}" \
-d "{ \"ThingId\": \"ThingId_ICCID_{ICCID}\", \"ThingName\": \"{NEW_NAME}\", \"cas\": \"{CAS}\"}"
Expected response:
Thing undefined successfully saved.