Zum Inhalt springen
AchaduDevelopers
Developers/API/template_create
Vorlagen

Vorlage erstellen

Erstellt eine wiederverwendbare Veröffentlichungsvorlage.

POST/templatestemplates:write

Anfrage

namestring · bodyVorlagenname.obligatorisch
bodystring · bodyTextkörper mit Achadu-Variablen.obligatorisch
marketplacestring · bodyOptionaler Marktplatz.optional
with_previewboolean · bodyInklusive Produktvorschau.optional

Beispiel

curl
curl -X POST 'https://achadu.com/api/v1/templates' \
+  -H 'Authorization: Bearer ach_live_...' \
+  -H 'Accept: application/json' \
+  -H 'Content-Type: application/json' \
+  --data '{
  "name": "My integration",
  "body": "string",
  "marketplace": "string",
  "with_preview": true
}'

Antwort

201Ressource erstellt
4xxFehler mit Code, Nachricht und request_id