Business RecordsCreate or replace a record field valueput

Create or replace a record field value

Creates or replaces a field value on a business record, including optional evidence.

curl -X PUT "https://api.textmine.com/v3/records/123/field-values" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)" \
  -d '{
  "fieldId": 9001,
  "value": "England and Wales",
  "normalizedValue": "england_and_wales",
  "confidence": 0.94,
  "status": "validated",
  "sourceType": "document",
  "sourceId": "67890",
  "evidence": [
    {
      "documentId": 67890,
      "pageNumber": 4,
      "passageText": "This agreement is governed by the laws of England and Wales.",
      "confidence": 0.94,
      "validated": true
    }
  ]
}'
{
  "id": 6001,
  "teamId": 321,
  "vaultId": 12345,
  "schemaVersionId": 4001,
  "recordTypeId": 5001,
  "canonicalName": "Acme Ltd",
  "status": "active",
  "confidence": 0.91,
  "fieldValues": []
}
PUT
/v3/records/{recordId}/field-values
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
recordIdinteger
Required

Record ID.

Format: int64
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

Body

application/json
fieldIdinteger
Example:
9001
valuestring
Example:
England and Wales
normalizedValuestring
Example:
england_and_wales
currencystring
Example:
GBP
confidencenumber
Example:
0.94
statusstring
Example:
validated
sourceTypestring
Example:
document
sourceIdstring
Example:
67890
evidencearray

Responses

Updated record.