Update a Published Template
documentedUpdate the published template version (or draft if update_published is not set).
PUT /api/v1/templates/{id}{?update_published}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/{{$template_id}}?update_published={{$update_published}}' \
-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}}","reply_to":"{{$reply_to}}"},"options":{"open_tracking":{{$open_tracking}},"click_tracking":{{$click_tracking}}},"shared_with_subaccounts":{{$shared_with_subaccounts}}}'