Replace text in a custom field

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

FieldTypeRequiredDescription
quotationintegerYesQuotation id

Body Fields

FieldTypeRequiredDescription
fieldstringYesCustom field key (e.g. introduction)
searchstringYesExact text to find (verbatim, including HTML tags/whitespace)
replacestringNoReplacement text; empty string removes the matched text

Response

  • 200 OK: { field, replaced, newLength }replaced = number of occurrences replaced
  • 400 Bad Request: missing field/search, or the field does not exist
  • 422 Unprocessable Entity: the search text was not found in the field
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
string
string
string
Responses
201

Resource created

400

Bad request

401

Unauthorized

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!