Skip to main content

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

Body

    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

    type stringrequired

    Possible values: [string, float, binary, boolean]

    Type of the value needs to be set. This type will override type specified earlier.

Responses

Success

Schema
    reqId string
    success boolean
    error string
    errorcode integer
Loading...