获取表格配置
POST
/openapi/v1/table/{table_id}获取指定表格的详细字段配置。
请求参数
Path 参数
table_id
string
表格ID
示例值:
{{TABLE_ID}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
错误码
0 为成功,小于 10000 为系统异常,其他为业务异常
message
string
错误信息
具体的错误原因,code 为 0 时返回“success”
data
object
返回数据
返回具体数据的结构
table
object (表格配置)
必需
meta
object
元数据
用来描述返回数据原始信息
trace_id
string
请求ID
每次请求接口会返回唯一的ID
示例成功示例
{
"code": 0,
"message": "success",
"data": {
"table": {
"table_id": "2100000000000001",
"name": "所有字段类型枚举",
"alias": "all_fields",
"space_id": 4000000000000001,
"created_on": "2022-04-02 14:17:17",
"fields": [
{
"field_id": "2200000137788628",
"name": "单行文本",
"alias": "all_fields.input_text",
"field_type": "input",
"data_type": "text",
"required": false,
"description": "",
"config": {}
},
{
"field_id": "2200000137788629",
"name": "多行文本",
"alias": "all_fields.textarea_text",
"field_type": "textarea",
"data_type": "text",
"required": false,
"description": "",
"config": {}
},
{
"field_id": "2200000137788630",
"name": "富文本",
"alias": "all_fields.rich_text",
"field_type": "rich",
"data_type": "text",
"required": false,
"description": "",
"config": {}
},
{
"field_id": "2200000137788631",
"name": "号码",
"alias": "all_fields.number_text",
"field_type": "number",
"data_type": "text",
"required": false,
"description": "",
"config": {}
},
{
"field_id": "2200000137788632",
"name": "条码",
"alias": "all_fields.barcode_text",
"field_type": "barcode",
"data_type": "text",
"required": false,
"description": "",
"config": {}
},
{
"field_id": "2200000137788634",
"name": "数值",
"alias": "all_fields.numeric_numeric",
"field_type": "numeric",
"data_type": "numeric",
"required": false,
"description": "",
"config": {
"is_percent": 0,
"precision": 0,
"unit_prefix": "",
"unit_surfix": "个"
}
},
{
"field_id": "2200000137788635",
"name": "百分比",
"alias": "all_fields.numeric_numeric",
"field_type": "numeric",
"data_type": "numeric",
"required": false,
"description": "",
"config": {
"is_percent": 1,
"precision": 2,
"unit_prefix": "",
"unit_surfix": "%"
}
},
{
"field_id": "2200000137788642",
"name": "金额",
"alias": "all_fields.money_numeric",
"field_type": "money",
"data_type": "numeric",
"required": false,
"description": "",
"config": {
"is_percent": 0,
"precision": 2,
"unit_prefix": "",
"unit_surfix": "元"
}
},
{
"field_id": "2200000137788643",
"name": "日期 - 仅日期",
"alias": "all_fields.date_date",
"field_type": "date",
"data_type": "date",
"required": false,
"description": "",
"config": {
"precision": "date"
}
},
{
"field_id": "2200000137788644",
"name": "日期 - 日期和时间",
"alias": "all_fields.date_date",
"field_type": "date",
"data_type": "date",
"required": false,
"description": "",
"config": {
"precision": "datetime"
}
},
{
"field_id": "2200000137788645",
"name": "计算 - 数字",
"alias": "all_fields.calculation_numeric",
"field_type": "calculation",
"data_type": "numeric",
"required": false,
"description": "",
"config": {
"is_percent": 0,
"precision": 2,
"unit_prefix": "¥",
"unit_surfix": ""
}
},
{
"field_id": "2200000137788646",
"name": "计算 - 百分比",
"alias": "all_fields.calculation_numeric",
"field_type": "calculation",
"data_type": "numeric",
"required": false,
"description": "",
"config": {
"is_percent": 1,
"precision": 2,
"unit_prefix": "",
"unit_surfix": "%"
}
},
{
"field_id": "2200000137788647",
"name": "计算 - 仅日期",
"alias": "all_fields.calculation_date",
"field_type": "calculation",
"data_type": "date",
"required": false,
"description": "",
"config": {
"precision": "date"
}
},
{
"field_id": "2200000137788648",
"name": "计算 - 日期和时间",
"alias": "all_fields.calculation_date",
"field_type": "calculation",
"data_type": "date",
"required": false,
"description": "",
"config": {
"precision": "datetime"
}
},
{
"field_id": "2200000137788650",
"name": "平铺选项 - 单选",
"alias": "all_fields.category_category",
"field_type": "category",
"data_type": "category",
"required": false,
"description": "",
"config": {
"is_multi": 0,
"is_tile": 1,
"options": [
{
"id": "1",
"name": "A"
},
{
"id": "2",
"name": "B"
},
{
"id": "3",
"name": "C"
}
]
}
},
{
"field_id": "2200000137788651",
"name": "平铺选项 - 多选",
"alias": "all_fields.category_category",
"field_type": "category",
"data_type": "category",
"required": false,
"description": "",
"config": {
"is_multi": 1,
"is_tile": 1,
"options": [
{
"id": "1",
"name": "A"
},
{
"id": "2",
"name": "B"
},
{
"id": "3",
"name": "C"
}
]
}
},
{
"field_id": "2200000137788652",
"name": "下拉菜单 - 单选",
"alias": "all_fields.category_category",
"field_type": "category",
"data_type": "category",
"required": false,
"description": "",
"config": {
"is_multi": 0,
"is_tile": 0,
"options": [
{
"id": "1",
"name": "A"
},
{
"id": "2",
"name": "B"
},
{
"id": "3",
"name": "C"
}
]
}
},
{
"field_id": "2200000137788653",
"name": "下拉菜单 - 多选",
"alias": "all_fields.category_category",
"field_type": "category",
"data_type": "category",
"required": false,
"description": "",
"config": {
"is_multi": 1,
"is_tile": 0,
"options": [
{
"id": "1",
"name": "A"
},
{
"id": "2",
"name": "B"
},
{
"id": "3",
"name": "C"
}
]
}
},
{
"field_id": "2200000137788654",
"name": "成员 - 单选",
"alias": "all_fields.user_user",
"field_type": "user",
"data_type": "user",
"required": false,
"description": "",
"config": {
"is_multi": 0
}
},
{
"field_id": "2200000137788655",
"name": "成员 - 多选",
"alias": "all_fields.user_user",
"field_type": "user",
"data_type": "user",
"required": false,
"description": "",
"config": {
"is_multi": 1
}
},
{
"field_id": "2200000137788659",
"name": "关联 - 单选",
"alias": "all_fields.relation_relation",
"field_type": "relation",
"data_type": "relation",
"required": false,
"description": "",
"config": {
"is_multi": 0,
"table_id": "2100000000000002",
"space_id": "4000000000000001"
}
},
{
"field_id": "2200000137788660",
"name": "关联 - 多选",
"alias": "all_fields.relation_relation",
"field_type": "relation",
"data_type": "relation",
"required": false,
"description": "",
"config": {
"is_multi": 1,
"table_id": "2100000000000002",
"space_id": "4000000000000001"
}
},
{
"field_id": "2200000137788661",
"name": "位置 - 仅可获取当前位置",
"alias": "all_fields.location_location",
"field_type": "location",
"data_type": "location",
"required": false,
"description": "",
"config": {
"is_current": 1
}
},
{
"field_id": "2200000137788662",
"name": "位置 - 可搜索指定位置",
"alias": "all_fields.location_location",
"field_type": "location",
"data_type": "location",
"required": false,
"description": "",
"config": {
"is_current": 0
}
},
{
"field_id": "2200000137788663",
"name": "图片 - 不加水印",
"alias": "all_fields.image_file",
"field_type": "image",
"data_type": "file",
"required": false,
"description": "",
"config": {
"is_multi": 1,
"is_watermark": 0
}
},
{
"field_id": "2200000137788664",
"name": "图片 - 加水印",
"alias": "all_fields.image_file",
"field_type": "image",
"data_type": "file",
"required": false,
"description": "",
"config": {
"is_multi": 1,
"is_watermark": 1
}
},
{
"field_id": "2200000137788666",
"name": "附件",
"alias": "all_fields.file_file",
"field_type": "file",
"data_type": "file",
"required": false,
"description": "",
"config": {
"is_multi": 1
}
},
{
"field_id": "2200000137788667",
"name": "手写签名",
"alias": "all_fields.signature_signature",
"field_type": "signature",
"data_type": "signature",
"required": false,
"description": "",
"config": {}
}
]
}
},
"meta": {
"trace_id": "1650338671134855"
}
}
最后修改时间: 3 年前