Ad Widget

Collapse

Update a specific field on a tophosts widget

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CristianR
    Junior Member
    • Apr 2023
    • 12

    #1

    Update a specific field on a tophosts widget

    Hello Community,

    How I can update the threshold field on the tophosts widget? I tried like below but that will update the field columnsthresholds.threshold.14.1 but also will remove all the other fields.

    Code:
    {
        "jsonrpc": "2.0",
        "method": "dashboard.update",
        "params": {
            "dashboardid": 162,
            "pages": [
                {
                    "dashboard_pageid": 1327
                },
                {
                    "dashboard_pageid": 1334,
                    "widgets": [
                        {
                            "widgetid" : 3535,
                            "type": "tophosts",
                            "fields" : [
                                   {
                                    "type": 1,
                                    "name": "columnsthresholds.threshold.14.1",
                                    "value": "9700"
                                    }
                            ]
                        }
                    ]
                }
            ]
        },
        "auth" : "{{auth}}",
        "id": 2
    }​
    Any help is appreciated.

    Thank you.

    Cristian
    Last edited by CristianR; 05-09-2023, 09:57.
Working...