コンテンツにスキップ
AchaduDevelopers
Developers/API/template_create
テンプレート

テンプレートの作成

再利用可能な公開テンプレートを作成します。

POST/templatestemplates:write

リクエスト

namestring · bodyテンプレート名。必須
bodystring · bodyAchadu 変数を含む本文。必須
marketplacestring · bodyオプションのマーケットプレイス。オプション
with_previewboolean · body製品プレビューが含まれています。オプション

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

答え

201リソースが作成されました
4xxコード、メッセージ、request_id のエラー