curl -X POST "https://api.scanova.io/qr/trash/restore/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"Qe5f6g7h8i9j0k1l"
]
}'
{
"message": "QR codes restored successfully."
}QR Codes
Restore trashed QR Codes
POST /qr/trash/restore/
POST
/
qr
/
trash
/
restore
/
curl -X POST "https://api.scanova.io/qr/trash/restore/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"Qe5f6g7h8i9j0k1l"
]
}'
{
"message": "QR codes restored successfully."
}Restores soft-deleted QR Codes out of Trash.
POST https://api.scanova.io/qr/trash/restore/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
array
required
qrid values to restore, or the single-element sentinel ["all"].string
Scopes an
["all"] restore: page for landing pages, qr for ordinary QR Codes.curl -X POST "https://api.scanova.io/qr/trash/restore/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"Qe5f6g7h8i9j0k1l"
]
}'
Restoring is quota-checked. The static, dynamic, and total QR-code buckets are each evaluated against the count you would have after the restore, so a bulk restore can be refused with
403 even though the QR Codes already existed once. Restore in smaller batches, or free up quota first.Success returns
200 OK — not 201 and not 204, unlike the other bulk operations in this module.Related
- List trashed QR Codes — find the ids to restore.
- Permanently delete trashed QR Codes — the irreversible alternative.
- Delete a QR Code — what put these QR Codes in Trash.
- QR Manager overview — the quotas, role permissions, and Trash model shared by every endpoint in this module.
- Management API overview — the auth scheme and quota rules that apply to this endpoint.
Authorizations
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Query Parameters
Scope an ["all"] restore to page (landing pages) or qr (ordinary QR codes).
Available options:
page, qr Response
QR codes restored.
Was this page helpful?