put
https://api.duodeal.app/api/quotation-lines/
Updates an existing quotation line by its ID.
Note: The totalHt and totalTtc fields are automatically recalculated when you update pricing-related fields.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Quotation line unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
lineType | string | No | Line type: normal, title, or subtotal |
title | string | No | Section title (for title lines) |
productTitle | string | No | Custom product title |
description | string | No | Line description (HTML supported) |
quantity | float | No | Quantity |
unitPrice | float | No | Unit price excl. tax |
coef | float | No | Coefficient/multiplier |
weight | integer | No | Sort order/position |
discount | float | No | Discount value |
discountType | string | No | percentage or amount |
option | boolean | No | Mark as optional line |
hide | boolean | No | Hide from output |
tax | object | No | Tax rate: {"id": <tax_id>} |
product | object | No | Link to product: {"id": <product_id>} |
productPrice | object | No | Link to product price: {"id": <product_price_id>} |
unity | object | No | Unit of measure: {"id": <unity_id>} |
parent | object | No | Parent line: {"id": <line_id>} or null |
medias | array | No | Media files: [{"id": <media_id>}, ...] |
customFields | object | No | Custom field values |
subTotalConfig | object | No | Subtotal configuration (for subtotal lines) |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Line unique identifier |
lineType | string | Line type |
title | string | Section title |
productTitle | string | Custom product title |
description | string | Line description (HTML) |
quantity | float | Quantity |
unitPrice | float | Unit price (excl. tax) |
coef | float | Coefficient/multiplier |
discount | float | Discount value |
discountType | string | Discount type |
totalHt | float | Total excl. tax (recalculated) |
totalTtc | float | Total incl. tax (recalculated) |
weight | integer | Sort order/position |
option | boolean | Whether line is optional |
hide | boolean | Whether line is hidden |
tax | object | Applied tax rate |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Quotation line successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Quotation line 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
