Business RecordsReplace a schema version definitionput

Replace a schema version definition

Replaces the record type and relationship definitions for a schema version.

curl -X PUT "https://api.textmine.com/v3/record-schema-versions/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)" \
  -d '{
  "recordTypes": [
    {
      "recordTypeKey": "supplier",
      "label": "Supplier",
      "description": "example_string",
      "source": "contract",
      "sortOrder": 42,
      "promptHint": "example_string",
      "fields": [
        {
          "fieldKey": "governing_law",
          "label": "Governing law",
          "description": "example_string",
          "fieldType": "text",
          "required": true,
          "evidenceRequired": true,
          "mergeKey": true,
          "multiValue": true,
          "allowedValuesJson": "example_string",
          "autoAcceptThreshold": 3.14,
          "reviewThreshold": 3.14,
          "sortOrder": 42,
          "promptHint": "example_string"
        }
      ]
    }
  ],
  "relationshipTypes": [
    {
      "relationshipKey": "supplies_to",
      "label": "Supplies to",
      "description": "example_string",
      "sourceRecordTypeKey": "supplier",
      "targetRecordTypeKey": "business_unit",
      "evidenceRequired": true,
      "autoAcceptThreshold": 3.14,
      "reviewThreshold": 3.14,
      "promptHint": "example_string"
    }
  ]
}'
{
  "id": 4001,
  "schemaId": 3001,
  "versionNumber": 1,
  "status": "active",
  "recordTypes": [
    {
      "id": 5001,
      "recordTypeKey": "supplier",
      "label": "Supplier"
    }
  ],
  "relationshipTypes": []
}
PUT
/v3/record-schema-versions/{schemaVersionId}
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
schemaVersionIdinteger
Required

Schema version 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
recordTypesarray

Responses

Updated schema version.