Skip to content
AchaduDevelopers
Operational APIGo to website
Dashboard
Developers/API/template_create
Templates

Create template

Creates a reusable publishing template.

POST/templatestemplates:write

Request

namestring · bodyTemplate name.mandatory
bodystring · bodyBody with Achadu variables.mandatory
marketplacestring · bodyOptional marketplace.optional
with_previewboolean · bodyIncludes product preview.optional

Example

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
}'

Answer

201Resource created
4xxError with code, message and request_id