|  Developer
Updated on November 21, 2021

hub.item.dictionary.value.set

Connection type:
Permissions:
  • Set new value for element in the dictionary Only applicable for items with value type dictionary ‘setItemDictionaryValue’ script from plugin config will be called in lua
Edit
Field Type Description
_id string Item object id
key string Valid element key
element.type string Valid value type. MUST be equal to dictionary element type
element.value depends on element.type Element value
Edit
Edit
Broadcast Description
hub.item.dictionary.updated Informs about item dictionary changed
Edit
Edit
				
					{
    "method": "hub.item.dictionary.value.set",
    "id": "<request_id>",
    "params": {
        "_id" : "5cf0dc8c7f000068d223e88a",
        "key" : "some_key",
        "element": {
            "type": "string",
            "value": "some_new_string_value"
        }
    }
}				
			
Edit
				
					{
    "api": "1.0",
    "error": null,
    "id": "_ID_",
    "result": {}
}