curl -X PATCH "https://api.scanova.io/qr-assets/conditional-redirect-template/3/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{ "template_name": "Location-based redirect (EU added)" }'
{
"id": 3,
"template_name": "Location-based redirect (EU added)",
"data": [
{
"logic": "AND",
"conditions": [{ "field": "country", "operator": "eq", "value": "US" }],
"redirect_url": "https://example.com/us"
}
],
"created": "2026-09-01T09:00:00Z",
"modified": "2026-09-08T09:00:00Z"
}
QR-Assets
Bedingte Weiterleitungsvorlage aktualisieren
PATCH /qr-assets/conditional-redirect-template//
PATCH
/
qr-assets
/
conditional-redirect-template
/
{pk}
/
curl -X PATCH "https://api.scanova.io/qr-assets/conditional-redirect-template/3/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{ "template_name": "Location-based redirect (EU added)" }'
{
"id": 3,
"template_name": "Location-based redirect (EU added)",
"data": [
{
"logic": "AND",
"conditions": [{ "field": "country", "operator": "eq", "value": "US" }],
"redirect_url": "https://example.com/us"
}
],
"created": "2026-09-01T09:00:00Z",
"modified": "2026-09-08T09:00:00Z"
}
Aktualisiert eine bedingte Weiterleitungsvorlage, die diesem Konto gehört, auf dem Management-API-Host (
Sowohl
Das Aktualisieren von
api.scanova.io), authentifiziert mit Ihrem rohen Management-API-Schlüssel.
PUT https://api.scanova.io/qr-assets/conditional-redirect-template/{pk}/
PATCH https://api.scanova.io/qr-assets/conditional-redirect-template/{pk}/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
integer
erforderlich
Die
id der Vorlage.PUT als auch PATCH werden unterstützt und akzeptieren dieselben Felder template_name/data, die unter Bedingte Weiterleitungsvorlage erstellen dokumentiert sind.
curl -X PATCH "https://api.scanova.io/qr-assets/conditional-redirect-template/3/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
-H "Content-Type: application/json" \
-d '{ "template_name": "Location-based redirect (EU added)" }'
{
"id": 3,
"template_name": "Location-based redirect (EU added)",
"data": [
{
"logic": "AND",
"conditions": [{ "field": "country", "operator": "eq", "value": "US" }],
"redirect_url": "https://example.com/us"
}
],
"created": "2026-09-01T09:00:00Z",
"modified": "2026-09-08T09:00:00Z"
}
data ersetzt das gesamte Array der Bedingungsgruppen — es gibt keinen Endpunkt, um eine einzelne Bedingung gezielt zu ändern, senden Sie also das vollständige Array mit Ihrer Änderung zurück. 404, wenn pk keine Vorlage ist, die diesem Konto gehört.
Verwandte Themen
- Bedingte Weiterleitungsvorlage abrufen — vor der Aktualisierung ansehen.
- Bedingte Weiterleitungsvorlage erstellen — die Feldreferenz, die dieses Update wiederverwendet.
- Bedingte Weiterleitungsvorlage löschen — vollständig entfernen.
- Übersicht über die Management API — das Authentifizierungsschema und die Quota-Regeln für diesen Endpunkt.
Autorisierungen
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.
Pfadparameter
Antwort
Template updated.
War diese Seite hilfreich?