Skip to content
NewDatafor 10.02 is out: subscriptions and metric alerts, in Slack and Teams
Datafor

Dictionaries

Get dictionaries

List data dictionaries, or find one by name or ID.

Lists the data dictionaries, newest first, or returns the one matching name or id.

Method and path POST /plugin/datafor-modeler/api/dict/query
Permission Any signed-in user
Content type application/x-www-form-urlencoded

Parameters

Name In Type Required Description
name form string No Exact dictionary name.
id form string No Dictionary ID.

Example

curl -u admin:password -X POST \
  "http://localhost:28080/datafor/plugin/datafor-modeler/api/dict/query"
{
  "success": true,
  "msg": "",
  "data": [
    {
      "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
      "name": "product_names",
      "type": "2",
      "dbconn": "Sales DW",
      "detail": "select product_id, product_name from public.product",
      "default": "Unknown product",
      "expire": "3600",
      "add_time": "2026-10-08 09:30:00.0",
      "update_time": "2026-10-09 14:12:00.0",
      "update_by": "admin"
    }
  ]
}

Field meanings are on Add or modify a dictionary. Empty fields are omitted.

Errors

Response When
{"success": false, "msg": "..."} The dictionary store could not be read.

Related: Data Dictionary