cURL
curl --request PATCH \ --url https://api.example.com/v1/templates/{id} \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "subject": "<string>", "html": "<string>", "text": "<string>" } '
Update a template’s content.
curl -X PATCH https://www.unosend.co/api/v1/templates/tpl_abc123 \ -H "Authorization: Bearer un_xxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "subject": "Welcome aboard, {{first_name}}!" }'
{ "id": "tpl_abc123", "name": "Welcome Email", "subject": "Welcome aboard, {{first_name}}!", "html": "<h1>Welcome, {{first_name}}!</h1><p>Thanks for joining {{company_name}}.</p>" }