MetadataOverride a metadata fieldpatch

Override a metadata field

Updates a metadata field value or status, typically after human validation.

curl -X PATCH "https://api.textmine.com/v3/documents/123/metadata/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)" \
  -d '{
  "value": "England and Wales",
  "status": "validated"
}'
{
  "fieldId": 9001,
  "name": "Governing law",
  "type": "text",
  "value": "England and Wales",
  "status": "validated",
  "confidence": 0.93,
  "citations": [
    {
      "pageNumber": 4,
      "snippet": "This agreement is governed by the laws of England and Wales."
    }
  ]
}
PATCH
/v3/documents/{documentId}/metadata/{fieldId}
PATCH
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
documentIdinteger
Required

Document ID.

Format: int64
path
fieldIdinteger
Required

Metadata field 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

fieldIdinteger
Required

Metadata field ID.

Body

application/json
valuestring
Example:
England and Wales
statusstring
Example:
validated

Responses

fieldIdinteger
namestring
typestring
valuestring
statusstring
confidencenumber
citationsarray