curl -X PATCH "https://api.scanova.io/qr-assets/template/12/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{ "name": "Winter Poster" }'
{
"id": 12,
"name": "Winter Poster",
"template_id": "a1b2c3d4e5f6",
"template_type": "P",
"template_type_display": "Poster",
"pattern_info": "{\"dotStyle\":\"round\"}",
"image": "https://cdn.scanova.io/upload/images/42/template-foo.png"
}
QR Assets
Update a QR Code design template
PATCH /qr-assets/template//
PATCH
/
qr-assets
/
template
/
{pk}
/
curl -X PATCH "https://api.scanova.io/qr-assets/template/12/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{ "name": "Winter Poster" }'
{
"id": 12,
"name": "Winter Poster",
"template_id": "a1b2c3d4e5f6",
"template_type": "P",
"template_type_display": "Poster",
"pattern_info": "{\"dotStyle\":\"round\"}",
"image": "https://cdn.scanova.io/upload/images/42/template-foo.png"
}
Updates a QR Code design template owned by this account, on the Management API host (
Both
api.scanova.io), authenticated with your raw Management API key.
PUT https://api.scanova.io/qr-assets/template/{pk}/
PATCH https://api.scanova.io/qr-assets/template/{pk}/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
integer
required
The template’s
id.PUT (full replace) and PATCH (partial update) are supported, and accept the same name/pattern_info/image fields documented in Create a QR Code design template.
curl -X PATCH "https://api.scanova.io/qr-assets/template/12/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{ "name": "Winter Poster" }'
{
"id": 12,
"name": "Winter Poster",
"template_id": "a1b2c3d4e5f6",
"template_type": "P",
"template_type_display": "Poster",
"pattern_info": "{\"dotStyle\":\"round\"}",
"image": "https://cdn.scanova.io/upload/images/42/template-foo.png"
}
template_type can’t be changed here
template_type is create-only — sending it in a PUT/PATCH body is silently dropped rather than rejected, so the template keeps its original Poster/Normal type for its whole life. 404 if pk isn’t a template owned by this account.
Related
- Retrieve a QR Code design template — view before updating.
- Create a QR Code design template — the field reference this update reuses.
- Delete a QR Code design template — remove it entirely.
- 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.
Path Parameters
Response
Template updated.
Was this page helpful?