Set a Value
POST/v1/valuestore/setValue
This endpoint allows to set a key value pair. If key exists it is updated and if not new key-value pair is created.
note
Devices can set values only in self
namespace
MQTT Topic
$anedya/device/{deviceid}/valuestore/setValue/json
Request
- application/json
Body
- MOD1
- MOD2
- MOD3
reqId string
key stringrequired
A unique key to identify your key value pair
value object required
Value to be set for the key
oneOf
string
boolean
number
type stringrequired
Possible values: [string
, float
, binary
, boolean
]
Type of the value needs to be set. This type will override type specified earlier.
Responses
- 2XX
Success
- application/json
- Schema
- Example (from schema)
Schema
reqId string
success boolean
error string
errorcode integer
{
"reqId": "string",
"success": true,
"error": "string",
"errorcode": 0
}
Loading...