Restore a deleted dashboard.
const url = 'https://api.siteqwality.com/dashboards/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siteqwality.com/dashboards/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Dashboard id
Responses
Section titled “ Responses ”The restored dashboard
object
object
object
A window of T2 tokens (now, now-2h) or instants (ISO 8601, epoch milliseconds), resolved
when the query is compiled, so a stored view stays rolling.
object
None follows the viewer’s browser; otherwise UTC or an IANA zone.
object
["*"] is All.
A fixed list instead of values from the data.
object
object
object
object
object
Metrics source only: the metric name (or $var).
A horizontal marker on a time series.
object
object
object
object
object
Metrics source only: the metric name (or $var).
A conditional colour on a value (query value, toplist, table cells).
object
object
object
object
object
Metrics source only: the metric name (or $var).
A query or formula id; defaults to the first visible one.
A conditional colour on a value (query value, toplist, table cells).
object
object
object
object
object
Metrics source only: the metric name (or $var).
Empty means one number column per visible query and formula.
object
A query or formula id.
A conditional colour on a value (query value, toplist, table cells).
object
object
object
object
object
Metrics source only: the metric name (or $var).
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Whether the caller may save changes (role, plan, scopes and the lock).
Live public links: not paused and not expired.
Example
{ "definition": { "settings": { "refresh": "auto", "crosshair": "shared" }, "variables": [ { "source": "monitors" } ], "widgets": [ { "config": { "queries": [ { "source": "monitors", "aggregation": "avg", "filters": [ { "op": "in" } ] } ], "formulas": [ { "unit": "ms" } ], "display": "line", "legend": "auto", "legend_columns": [ "value" ], "y_axis": { "scale": "linear" }, "unit": "ms", "thresholds": [ { "tone": "ok", "style": "line" } ], "compare": "previous_period", "overlays": [ "incidents" ], "palette": "categorical" }, "type": "timeseries" } ] }}The account already has 500 dashboards
Missing or invalid authentication
Locked, or the role is view-only
Not deleted, or deleted more than 30 days ago
Internal server error