Ga naar de inhoud
AchaduDevelopers
Operationele APIGa naar website
Dashboard
Developers/API/template_update
Sjablonen

Sjabloon bijwerken

Werkt de velden bij die vanuit de sjabloon zijn verzonden.

PATCH/templates/{id}templates:write

Verzoek

idstring · pathResource-ID.verplicht
namestring · bodySjabloonnaam.optioneel
bodystring · bodyHoofdtekst met Achadu variabelen.optioneel
marketplacestring · bodyOptionele marktplaats.optioneel
with_previewboolean · bodyInclusief productvoorbeeld.optioneel

Voorbeeld

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

Antwoord

200Operatie voltooid
4xxFout met code, bericht en request_id