post
https://api.duodeal.app/api/quotations//custom-fields/replace
Performs a targeted search/replace inside one custom field of a quotation. Lets a client edit a
large field (e.g. an HTML offer) by sending only the snippet to change, instead of re-sending the
whole field.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
quotation | integer | Yes | Quotation id |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
field | string | Yes | Custom field key (e.g. introduction) |
search | string | Yes | Exact text to find (verbatim, including HTML tags/whitespace) |
replace | string | No | Replacement text; empty string removes the matched text |
Response
200 OK:{ field, replaced, newLength }—replaced= number of occurrences replaced400 Bad Request: missingfield/search, or the field does not exist422 Unprocessable Entity: thesearchtext was not found in the field
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
201Resource created
400Bad request
401Unauthorized
