Skip to main content

Decision Table API Quick Reference

Quick lookup for decision table endpoints. For complete documentation, see Decision Table API Reference.


Base URL

/api/v1/decision-tables

CRUD Operations

MethodEndpointDescription
GET/List all decision tables (paginated)
GET/{id}Get a specific table (latest version)
POST/Create a new decision table
PUT/{id}Update an existing table (creates new version)
DELETE/{id}Delete a table and all its versions

Execution

MethodEndpointDescription
POST/{id}/evaluateExecute table against input facts

Request:

{
"input": {
"customerType": "premium",
"amount": 7500
}
}

Response:

{
"matchedRows": ["row-1"],
"outputRows": [
{
"rowId": "row-1",
"outputs": {
"discountRate": 0.20
}
}
],
"evaluationTimeMs": 2.5
}

Versioning

MethodEndpointDescription
GET/{id}/versionsList all versions (paginated)
GET/{id}/versions/{v}Get specific version definition
GET/{id}/versions/{v1}/diff/{v2}Compare two versions

Validation

MethodEndpointDescription
POST/{id}/validateValidate table structure
POST/{id}/feel/validate-expressionValidate FEEL expression

Audit & History

MethodEndpointDescription
GET/{id}/auditGet table-specific audit log
GET/auditGet global audit log (admin)

Import & Export

MethodEndpointDescription
POST/import?format=json|excel|dmnBulk import tables
GET/{id}/export?format=json|excel|dmn|xmlExport table in format

Status Codes

CodeMeaning
200OK
201Created
204No Content
400Bad Request
401Unauthorized
404Not Found
409Conflict
422Unprocessable Entity
429Too Many Requests
500Internal Server Error

Authentication

All endpoints require Authorization: Bearer <token> header.

curl -X GET "https://cp.truyentm.xyz/api/v1/decision-tables" \
-H "Authorization: Bearer YOUR_TOKEN"

Full Documentation

Refer to the Complete Decision Table API Reference for:

  • Detailed request/response schemas
  • Full curl examples
  • Error response formats
  • Best practices
  • MCP tools

Related guides: