Put a widget back from a backup
Puts the definition and the format a backup holds back onto the widget it was taken from. Every /v1/widgets/update and every /v1/widgets/restore keeps the widget as it was first, for 7 days, and /v1/widgets/get lists what is there under backup_keys.
The place and the connection are the CURRENT ones and not the backup's: a widget that was moved stays where it is and one that was rebound keeps reading what it reads. What comes back is what it showed and how it looked. The call takes a backup of its own before it writes, so a restore is undoable in the same way.
Refusals: 400 for the framework and the body, 400 APPEND_NOT_ALLOWED with reason template_based, 403 WRITE_ACCESS_DISABLED, 404 NOT_FOUND for the report, the section, the widget or a backup that is not this widget's, 409 WIDGET_NOT_EDITABLE, 409 WIDGET_CHANGED when if_widget_hash is stale or when the widget changed after the call read it (nothing is written and no backup is kept), 409 ROW_RULE and 409 REPORT_IN_TRASH.
Every write endpoint reads dry_run and idempotency_key; see the Write guarantees section of the introduction.
Request
- Base URL: https://api.reportingninja.com/v1
- URL: https://api.reportingninja.com/v1/widgets/restore
- Auth: HTTP bearer
Request body
Response
The call succeeded. This endpoint reports its errors with a real HTTP status, so a 200 always carries status=ok.
Changes
No recorded changes to this operation across all 1 revision of this API.