BlockScript

Direct integration with <a href="https://blockscript.app" target="_blank">BlockScript</a> no code editor, allowing custom integrations without writing a single line of code. BlockScript also enables scheduled updating along with Custom API calls and integrations you can use with your system.

<img src="/assets/images/BlockScript/blockscript.png" alt="BlockScript Example" width="800" />

</br>

The "Dashifi Update Dashboard" Block is available within BlockScript. This allows easy updating of a Dashifi Dashboard by wrapping our API.

</br>

The following Parameters must be provided to the block:

Input Parameters

Name Type Description
ID <font color='#9b59b6'>String</font> The ID of the Dashifi Dashboard
API Key <font color='#9b59b6'>String</font> The API Key for the Dashifi Dashboard
Body <font color='#3498db'>Object Array</font> The body of the request, each object in the array represents a Panel on the Dashifi Dashboard. For more information see <a href="https://docs.dashifi.app/restapi" target="_blank">Dashifi REST API Docs</a>

Example Body Element (Single Value Panel)

{
  "PanelID": "sv-0e647a",
  "Data": "My New Text Value"
}

Example Body Element (Pie Chart Panel)

{
  "PanelID": "p-d7014a",   
  "Data": [     
    {       
      "Label": "Item1",
      "Value": 2     
    },     
    {       
      "Label": "Item2", 
      "Value": 6     
    },     
    {       
      "Label": "Item3",
      "Value": 1     
    },     
    {       
      "Label": "Item4",       
      "Value": 3     
    }  
  ]
}

</br>

Output Parameters

Name Type Description
Status Code <font color='#1abc9c'>Number</font> Status Code issued in response to the request
Error <font color='#f1c40f'>Any</font> The error if the Dashifi Update API Call is not successful