Update Thing Description
This guide will show you how you can update your Thing description 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 "https://console.monogoto.io/thing/ThingId_ICCID_{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 "https://console.monogoto.io/thing/update/" -H "accept: application/json" -H "Content-Type: application/json" \
-H "Authorization: Bearer {YOUR_TOKEN}" \
-d "{ \"ThingId\": \"ThingId_ICCID_{ICCID}\", \"ThingDescription\": \"{NEW_DESCRIPTION}\", \"cas\": \"{CAS}\"}"
Expected response:
Thing undefined successfully saved.