# Update documents Applies an ordered sequence of field-level patch operations to one or more existing documents. Patches are applied in the order supplied; if any patch in the sequence is invalid, the entire update for that document is rejected. Request: updates - List of documents to update. Each entry includes: id - The document ID to target. Either id or externalId must be supplied. externalId - The external system ID to target (alternative to id, useful when the document was created with an externalId for cross-system referencing). patches - Ordered list of patch operations. Field paths use forward-slash notation matching the document's field structure (e.g. /name or /metadata/status). Each patch is one of: Add(path, value) — sets a field that does not yet exist. Remove(path) — removes the field at the given path. Replace(path, value) — overwrites an existing field's value. Response: ids - IDs of the documents that were successfully updated. Endpoint: POST /api/v1/document/update Version: 3.0 Security: bearerAuth ## Request fields (application/json): - `updates` (array) ## Response 200 fields (application/json): - `ids` (array) ## Response 400 fields (application/json): - `message` (string) ## Response 401 fields (application/json): - `message` (string) ## Response 403 fields (application/json): - `message` (string) ## Response 404 fields (application/json): - `message` (string) ## Response 409 fields (application/json): - `message` (string) ## Response 429 fields (application/json): - `message` (string) ## Response 499 fields (application/json): - `message` (string) ## Response 500 fields (application/json): - `message` (string) ## Response 501 fields (application/json): - `message` (string) ## Response 503 fields (application/json): - `message` (string) ## Response 504 fields (application/json): - `message` (string)