cURL
curl --request PATCH \ --url https://api.nitrosend.com/v1/my/templates/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "subject": "<string>", "body": "<string>", "preheader": "<string>", "from_name": "<string>", "from_email": "jsmith@example.com", "reply_to": "jsmith@example.com", "design": { "sections": [ { "type": "header", "props": {}, "styles": { "background_color": "<string>", "padding": "<string>", "align": "left" } } ], "theme": { "brand_color": "<string>", "bg_color": "<string>", "text_color": "<string>", "font_body": "<string>", "font_heading": "<string>", "logo_url": "<string>" } } } '
{ "id": 123, "name": "<string>", "flow_id": 123, "action_id": 123, "subject": "<string>", "body": "<string>", "preheader": "<string>", "from_name": "<string>", "from_email": "<string>", "reply_to": "<string>", "design": { "sections": [ { "type": "header", "props": {}, "styles": { "background_color": "<string>", "padding": "<string>", "align": "left" } } ], "theme": { "brand_color": "<string>", "bg_color": "<string>", "text_color": "<string>", "font_body": "<string>", "font_heading": "<string>", "logo_url": "<string>" } }, "variables": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
API key (nskey_live_...) or JWT token. API key is checked first; if not found, falls back to Devise JWT authentication.
nskey_live_...
Email template design document
Show child attributes
Updated template