Update a Draft Template
documentedUpdate the draft template version.
PUT /api/v1/templates/{id}Sendingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.sparkpost.com/api/v1/templates/{{$id}}" \
-X PUT \
-H "Authorization: {{SPARKPOST_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "description": "{{$description}}", "content": {"from": {"email": "{{$from_email}}", "name": "{{$from_name}}"}, "subject": "{{$subject}}", "text": "{{$text}}", "html": "{{$html}}", "headers": {"X-Template-Header": "{{$header}}"}}, "options": {"open_tracking": {{$open_tracking}}, "click_tracking": {{$click_tracking}}, "transactional": {{$transactional}}}, "shared_with_subaccounts": {{$shared_with_subaccounts}}, "published": {{$published}} }'