put
https://api.duodeal.app/api/templates/
Updates an existing template by its ID.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Template unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
title | string | No | Template title/name |
type | string | No | Template type: email, notice, or cgv |
content | string | No | Template content (HTML supported) |
subject | string | No | Email subject line (for email templates) |
byDefaultSendDeal | boolean | No | Set as default for sending quotations |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Template unique identifier |
title | string | Template title |
type | string | Template type |
content | string | Template content |
subject | string | Email subject |
byDefaultSendDeal | boolean | Default for sending quotations |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Template successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Template not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
