Update a template’s content.
cURL
curl --request PATCH \ --url https://api.unosend.co/templates/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "subject": "<string>", "html": "<string>", "text": "<string>" } '
Documentation IndexFetch the complete documentation index at: https://docs.unosend.co/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.unosend.co/llms.txt
Use this file to discover all available pages before exploring further.
curl -X PATCH https://api.unosend.co/templates/tpl_abc123 \ -H "Authorization: Bearer un_xxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "subject": "Welcome aboard, {{first_name}}!" }'
{ "success": true, "data": { "id": "tpl_abc123", "name": "Welcome Email", "subject": "Welcome aboard, {{first_name}}!", "html": "<h1>Welcome, {{first_name}}!</h1><p>Thanks for joining {{company_name}}.</p>" } }