Templates
Create template
Creates a reusable publishing template.
POST
/templatestemplates:writeRequest
namestring · bodyTemplate name.mandatorybodystring · bodyBody with Achadu variables.mandatorymarketplacestring · bodyOptional marketplace.optionalwith_previewboolean · bodyIncludes product preview.optionalExample
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 created4xxError with code, message and request_id