hello
i’ve see and test that with NodeRed i can create a bucket and add property_value on device ,
but if i want creare a new dashboard (every time i create a new device), or cloning a main dashboard there is any way to do this ?
On nodeRed there is no node to do CREATE_DASHBOARD ,but i’ve test with basic node HTTP_request that i can use API with Bearer auth , but i don’t undersand how i can i copy a dashboard that already exist to create a new .
Inside every DASHBOARDs on Setting there is JSON structure and if i copy it and add
“dashboard”: “t2”,
“description”: “t2”,
to
{
"dashboard": "t2",
"description": "t2",
"name": "t2",
"project": [
"azzurrodante@essetiprj"
],
"properties": {
"columns": 6,
"row_height": 40
},
"tabs": [
{
"icon": "fas fa-tachometer-alt",
"name": "testcreate",
"widgets": [
{
"data": {
"device_property": {
"device": "352818660852954",
"mapping": "button",
"property": "prop01",
"user": "azzurrodante"
},
"source": "device_property"
},
"layout": {
"col": 0,
"row": 0,
"sizeX": 1,
"sizeY": 3
},
"panel": {
"color": "#ffffff"
},
"properties": {
"style": "switch"
},
"type": "boolean"
}
]
}
]
}
and insert it on
/v1/users/{user}/dashboards on swagger , i get error
“error”: {
“message”: “Object contains a property that could not be validated using ‘properties’ or ‘additionalProperties’ constraints: ‘project’.”