Modify Chart Grid
  • 16 Oct 2020
  • 1 Minute To Read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Modify Chart Grid

  • Print
  • Share
  • Dark
    Light

Modify Dashboard -> Change Charts Grid

Method for adding and changing charst on dashboards.

URL

https://api.corezoid.com/api/2/json/{API_LOGIN}/{GMT_UNIXTIME}/{SIGNATURE}

Request Body

{
    "ops": [
        {
            "type": "modify",
            "obj": "dashboard",
            "obj_id": {{DASHBOARD_ID}},
            "time_range": {
                "timezone_offset": -10,
                "select": "last24hour"
            },
            "grid": [
                {
                    "obj_id": {{CHART_ID}},
                    "x": 0,
                    "y": 0,
                    "width": 12,
                    "height": 28
                }
            ],
            "company_id": {{COMPANY_ID}}
        }
    ]
}
Parameter Type Required Description Possible value
ops JSON Object + The list of operations to proceed via Corezoid API. A parameter keeping JSON objects with operations * The number is user-limited by RPS limit.
type string + A request type create
obj string + An object of request invite
obj_id number / number as string + An ID of Dashboard An ID of an existing Dashboard
time_range array - A settings of dashboard
timezone_offset number - ---
select string - --- online, previous_hour, today, last10minute , lastHour, last24hour, lastWeek, lastMonth
grid array + An array of Charts displaying placement
obj_id string + An ID of Chart An ID of existing Chart
x number + A chart placement on X-axis 0-11
y number + A chart placement on Y-axis 0-11
width number + A chart width 0-12
height number + A chart height 0-12
company_id string - An ID of a Company, where sharing object stored An ID of an existing Company

Response Body

{
    "request_proc": "ok",
    "ops": [
        {
            "id": "",
            "proc": "ok",
            "obj": "dashboard",
            "obj_id": 120715
        }
    ]
}
Parameter Type Description Possible value
request_proc string The overall processing status of all transactions from the request ok, error
ops array The list of request results
id A request id empty
proc string The processing status of a specific operation ok, error
obj string An object of request dashboard
obj_id number An ID of modified dashboard
Was This Article Helpful?