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.
reports:writeGrant 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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Not Found
Response Headers
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.