curl -X POST "https://api.scanova.io/qr/favorite/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"qr_category": 3
}'
[
{ "id": 17, "qr_category": 3 }
]
QR Codes
List and add favourite categories
GET, POST /qr/favorite/
GET
/
qr
/
favorite
/
curl -X POST "https://api.scanova.io/qr/favorite/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"qr_category": 3
}'
[
{ "id": 17, "qr_category": 3 }
]
Lists the calling account’s favourited QR categories, and adds new ones. One
Favourites are always scoped to the account the key belongs to, and the response is not paginated.
ListCreateAPIView, so both operations live on the same path.
GET https://api.scanova.io/qr/favorite/
POST https://api.scanova.io/qr/favorite/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
integer
required
Primary key of the category to favourite, from List QR categories.
curl -X POST "https://api.scanova.io/qr/favorite/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{
"qr_category": 3
}'
[
{ "id": 17, "qr_category": 3 }
]
Favourites are what
?view_type=favourite reads on List QR categories — add one here and it shows up in that section.Related
- Remove a favourite category — the delete side of this resource.
- List QR categories — the categories you can favourite, and the
favouriteview that reads them. - 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.
Response
200 - application/json
Array of favourite-category rows.
Was this page helpful?