Roll back a dashboard

Roll back a dashboard to one of its versions. The whole dashboard goes back to how it was in that version, and every change since, by anyone, is rolled back. Charts and alerts added since are removed, and ones removed since come back. Returns the full dashboard. An alert that still exists keeps its paused state. An alert that comes back starts checking at once and can open incidents. The rollback is itself kept as a new version, so it can be rolled back too.

POST https://telemetry.betterstack.com/api/v4/dashboards/{id}/rollback

URL parameters

id
required string

Query parameters

team_id
string

Headers

Authorization
required string
Content-Type
string

Body parameters

version
required integer
200

Response body

{
  "data": {
    "id": "123456789",
    "type": "dashboard",
    "attributes": {
      "name": "Sample Dashboard",
      "dashboard_group_id": "789",
      "refresh_interval": 30,
      "date_range_from": "now-3h",
      "date_range_to": "now",
      "source_eligibility_sql": "SELECT countMerge(events_count) FROM {{source}} WHERE name = 'node_cpu_seconds_total' LIMIT 1",
      "variables": [
        {
          "name": "environment",
          "variable_type": "string",
          "values": [
            "production"
          ],
          "default_values": [
            "production"
          ],
          "allow_multiple_values": false
        }
      ],
      "charts": [
        {
          "id": "567",
          "chart_type": "line_chart",
          "name": "CPU Usage",
          "x": 0,
          "y": 0,
          "w": 6,
          "h": 4
        }
      ],
      "sections": [
        {
          "id": "890",
          "name": "Key Metrics",
          "y": 0,
          "collapsed": false
        }
      ],
      "has_overlaps": false,
      "product": "rum",
      "created_at": "2025-01-20T15:00:00.000Z",
      "updated_at": "2025-01-21T10:00:00.000Z",
      "url": "https://telemetry.betterstack.com/team/t123456/dashboards/123",
      "team_id": "t123456",
      "team_name": "example-team"
    }
  },
  "rollback": {
    "version": 2,
    "version_created_at": "2026-11-20T20:20:58.511Z",
    "changes": [
      "CPU renamed"
    ],
    "change_count": 1
  }
}
401

Response body

{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
403

Response body

{
  "errors": "Dashboard 123 belongs to another team. The API only changes your own teams' dashboards."
}
404

Response body

{
  "errors": "Resource with the provided ID was not found"
}
422

Response attributes

id
string
type
string
name
string
dashboard_group_id
string or null
refresh_interval
integer
date_range_from
string
date_range_to
string
source_eligibility_sql
string or null
variables
array of objects
variables[].name
string
variables[].variable_type
string
variables[].values
array of strings
variables[].default_values
array of strings
variables[].sql_definition
string
variables[].structured_value
object
variables[].structured_value.selected_label
string
variables[].structured_value.canonicalSourceIds
array of strings
variables[].structured_value.serviceIds
array of strings
variables[].structured_value.filters
array of objects
variables[].structured_value.filters[].label
string
variables[].structured_value.filters[].sql
string
variables[].allow_multiple_values
boolean
variables[].source_ids
array of strings
variables[].filters
array of objects
variables[].filters[].label
string
variables[].filters[].sql
string
variables[].selected_label
string
charts
array of objects
charts[].id
string
charts[].chart_type
string
charts[].name
string
charts[].x
integer
charts[].y
integer
charts[].w
integer
charts[].h
integer
sections
array of objects
sections[].id
string
sections[].name
string or null
sections[].y
integer
sections[].collapsed
boolean
has_overlaps
boolean
product
string
created_at
datetime
updated_at
datetime
url
string
team_id
string
team_name
string
rollback
object
rollback.version
integer
rollback.version_created_at
datetime
rollback.changes
array of strings
rollback.change_count
integer

Example cURL

Roll back a dashboard
curl --request POST \
  --url https://telemetry.betterstack.com/api/v4/dashboards/1234/rollback \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "version": 2
}'