Skip to main content

Restore Report Version

POST 

/api/v2/custom-reports/:customReport/versions/:version/restore

Replace the report's definition with an earlier version's. The current definition is saved as a new version first (change note Restored from version N), so a restore can itself be undone. The owner or an edit-share recipient may restore (403 otherwise); restoring to or from an SQL definition requires the reports.sql permission. Returns the updated report.

Required scope: reports:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Bearer token (Personal Access Token). Personal access tokens need the reports:write scope.

Request​

Responses​

OK

Response Headers
    Content-Type