Get¶
GET /api/v1/field_cfg/{field_uuid}/get
Overview¶
Read the saved value of an active field configuration in the current workspace.
Prerequisites and Usage Steps¶
Use the API Key of the target workspace. This configuration adds display aliases, descriptions, units, and categories to existing fields. It does not create collection fields, modify actual data types, or backfill historical data. Custom configurations with the same field source and exactly the same name, including case, cannot be duplicated; fields from different sources can have the same name.
First obtain the uuid of the sysField=0 entry from the field list, then call the details endpoint. This endpoint reads only by the current workspace UUID and status=0, and does not merge built-in fields from the system workspace. The details endpoint directly returns the saved compatibility fields and multilingual mappings; unlike the list endpoint, it does not rewrite alias/desc based on the request language. It does not append creatorInfo/updatorInfo.
Route Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| field_uuid | string | Y | UUID of an active field configuration in the current workspace. Built-in configurations usually belong to the system workspace; being visible in the list does not mean that details can be read in the current workspace. Example: field_exampleHow to obtain or enter: Read the uuid of the target row with sysField=0 from the field list; do not use the field name. |
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with permission for this operation from API Key management in the target workspace. |
Additional Parameter Notes¶
Returns configuration details, not the business data of the field.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/field_cfg/field_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer | Record ID; not used for API addressing. |
| content.workspaceUUID | string | Workspace to which the configuration belongs; built-in configurations belong to the system workspace. |
| content.status | integer | Record status: 0 for normal, 3 for soft delete; this details endpoint returns only active records that belong to the current workspace. |
| content.deleteAt | integer | Deletion time in Unix seconds; -1 if not deleted. |
| content.declaration | object | Public declaration for the current calling workspace. |
| content.uuid | string | Field configuration UUID; use this value for subsequent operations, not the actual field name. |
| content.name | string | Actual field name; case-sensitive. |
| content.alias | string | Alias; the list displays it according to the request language, while details, create, and update retain the compatibility field value. |
| content.aliasEn | string | Compatibility English alias; may fall back to Chinese. |
| content.aliasI18n | object or null | Directly returns the historically saved multilingual mapping, which may be null, {}, or contain only some language keys; the six-language normalization performed by the list endpoint is not applied. |
| content.desc | string | Description; the list displays it according to the request language, while other responses use the compatibility field value. |
| content.descEn | string | Compatibility English description; may fall back to Chinese. |
| content.descI18n | object or null | Directly returns the historically saved multilingual mapping, which may be null, {}, or contain only some language keys; the six-language normalization performed by the list endpoint is not applied. |
| content.fieldType | string | Configured data type; does not change the actual collection field type. Historical built-in records may have values other than those in the create body. |
| content.fieldSource | string | Field source; an empty string indicates a generic configuration. |
| content.unit | string | Display unit; forced to be empty when fieldType=string is saved. |
| content.sysField | integer | 1 for built-in, 0 for custom. Built-in configurations cannot be modified or deleted through this endpoint. |
| content.category | string | system for system fields, business for business fields, other for other fields; old records may be empty. |
| content.creator | string | Creator identity; can be an API Key or a system identity. |
| content.updator | string | Updater identity; an empty string if not yet updated. |
| content.createAt | integer | Creation time in Unix seconds. |
| content.updateAt | integer | Update time in Unix seconds; may be -1 if not yet updated. |
| content.aliasI18n.zh | string | Raw alias for the zh language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.aliasI18n.en | string | Raw alias for the en language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.aliasI18n.zh-hant | string | Raw alias for the zh-hant language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.aliasI18n.id | string | Raw alias for the id language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.aliasI18n.ja | string | Raw alias for the ja language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.aliasI18n.ko | string | Raw alias for the ko language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.descI18n.zh | string | Raw description for the zh language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.descI18n.en | string | Raw description for the en language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.descI18n.zh-hant | string | Raw description for the zh-hant language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.descI18n.id | string | Raw description for the id language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.descI18n.ja | string | Raw description for the ja language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
| content.descI18n.ko | string | Raw description for the ko language; usually empty when not provided; list display falls back by language. The details endpoint directly returns the saved value; this key may be omitted, so first check whether the parent object and key exist. |
{
"code": 200,
"content": {
"id": 10,
"uuid": "field_example",
"workspaceUUID": "wksp_example",
"name": "host",
"alias": "主机",
"aliasEn": "Host",
"aliasI18n": {
"zh": "主机",
"en": "Host",
"zh-hant": "主機",
"id": "",
"ja": "",
"ko": ""
},
"desc": "主机名称",
"descEn": "Host name",
"descI18n": {
"zh": "主机名称",
"en": "Host name",
"zh-hant": "主機名稱",
"id": "",
"ja": "",
"ko": ""
},
"fieldType": "string",
"fieldSource": "logging",
"category": "business",
"unit": "",
"sysField": 0,
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 400 | ft.FieldNotFound | The UUID does not belong to the current workspace, or the record does not exist or has been deleted | Specified field not found | Obtain the custom configuration UUID from the field list of the current workspace; do not operate with a system workspace UUID. |
| 500 | ft.InternalServerError | Query or response formatting failed | Internal error | Keep the traceId and retry; if the failure persists, contact the administrator. |