- 公共功能
- 登录注册
- 工作区
- 邀请成员
- 通讯录(用户、部门、角色)
- 应用包
- 应用分组
- 应用
- 工作台
- 应用设置(表单引擎,流程引擎,拓展设置,应用发布)
- 应用展现层
- 公式
- 个人中心
- 企业管理
- 开放平台
- 官方网站
- 子管理员
- 报表
- 门户
- 购买相关
- OCR
- 代码生成
- 数据导入
- 流程测试
- 考勤
- 农业大屏
- 应用模板商城
- 应用包上线配置
- study
- 站内信
- sand测试流程测试模板
- 测试接口
- 响水大屏
- tplus
- 协办
- 费用管控
- 首页相关内容
- pm
- 水产养殖
- 应用商城
- 联系我们
- 图零后台管理
- 知识库
- doris相关
- Ai后台管理
- CRM二
- 自建应用设置
- EHR二期
- APP应用测试
- 未命名接口GET
- 数据上报GET
保存表单引擎设置
开发中
PUT
/form/update
暂无描述
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
object {0}
示例
{
"appId": 316,
"title": "请假单",
"version": 111,
"desc": "这是一个请假的应用",
"numberFormat": 1,
"attach": [
{
"name": "123",
"url": "123.png"
}
],
"fields": [
[
{
"fid": "us-rMzyLYCuiOQ1JMCTxt",
"type": "input",
"typeId": 30,
"label": "姓名",
"tip": "请输入姓名",
"width": "50%",
"required": true,
"unique": true,
"limitMax": 50,
"defaultType": 2,
"value": {
"value": "张三"
},
"values": [],
"defaultConfig": {
"appId": 91,
"fid": "number",
"typeId": 3,
"matchType": 2,
"matchRules": [
[
{
"fid": "number",
"fieldName": "编号",
"typeId": 1,
"judgeType": 1,
"matchType": 1,
"judgeValue": {
"id": "18",
"value": "116",
"otherInfo": "123.png"
},
"judgeFieldDetail": {
"id": "number",
"value": "编号",
"typeId": 1,
"values": [1]
}
}
]
],
"matchFormula": "CONCAT(SUM(#fid_number$),'123')=='116123'",
"formula": "SUM(#fid_number$)",
"subRelation": [
{
"fid": "123",
"fieldName": "单行文字",
"matchFid": "345",
"matchFieldName": "开发任务名称"
}
],
"aggregation": true,
"aggregationType": 1
},
"ocr": {
"templateId": 9,
"templateName": "印章",
"matchRules": [
{
"ocrField": "扫描原件",
"relatedFid": "123",
"relatedField": "附件上传"
},
{
"ocrField": "识别内容",
"relatedFid": "12345.45678",
"relatedField": "单行文本"
}
]
},
"numberFormat": 1,
"allowDecimal": true,
"decimalDigit": 5,
"minValue": 20,
"maxValue": 50,
"showPercent": true,
"showMoney": true,
"moneyType": 1,
"dateFormat": "1",
"denyOverlap": true,
"supportTel": true,
"codeVerify": true,
"direction": 1,
"chooseType": 1,
"options": [
{
"optId": "sdfwer",
"value": "未命名1",
"useLimit": 100,
"useCount": 5,
"linkFids": [
"us-rMzyLYCuiOQ1JMCTxt"
],
"imageUrl": "https://file.qingflow.com/assets/uploads/a48062c5-42a7-4311-8de6-ba017ba07ad9_28623.png"
}
],
"captureOnly": true,
"fileSize": 80,
"fileType": [
1
],
"imageCompress": true,
"fileNum": 2,
"addressPrecision": 1,
"descValue": "<p>这是描述文字</p>",
"limitWord": true,
"limitFileNum": true,
"limitFileType": true,
"innerFields": [],
"shrink": false,
"addRow": false,
"deleteRow": false,
"subFields": [
{
"fid": "us-rMzyLYCuiOQ1JMCTxt",
"type": "input",
"typeId": 18,
"label": "表格内字段1"
},
{
"fid": "us-rMzyLYCuiOQ1JMCTx3",
"type": "input",
"typeId": 18,
"label": "表格内字段2"
}
],
"subWidth": "20%",
"relationConfig": {
"appId": 91,
"fid": "number",
"matchType": 2,
"matchRules": [
[
{
"fid": "number",
"fieldName": "编号",
"typeId": 1,
"judgeType": 1,
"matchType": 1,
"judgeValue": {
"id": "18",
"value": "116",
"otherInfo": "123.png"
},
"judgeFieldDetail": {
"id": "number",
"value": "编号"
}
}
]
],
"matchFormula": "CONCAT(SUM(#fid_number$),'123')=='116123'",
"formula": "SUM(#fid_number$)"
},
"userRangeType": 1,
"userRange": {
"user": [
{
"id": 18
}
],
"department": [
{
"id": 22
}
],
"role": [
{
"id": 5
}
],
"dynamic": [
{
"fid": "createBy",
"dynamicType": 1
}
],
"includeSubDepartment": true
},
"userDefault": {
"user": [
{
"id": 18
}
],
"department": [
{
"id": 22
}
],
"role": [
{
"id": 5
}
],
"dynamic": [
{
"fid": "createBy",
"dynamicType": 1
}
],
"includeSubDepartment": true
},
"subRelation": [
{
"fid": "123",
"fieldName": "单行文字",
"matchFid": "345",
"matchFieldName": "开发任务名称"
}
],
"btnText": "选择数据",
"referenceFieldAuth": [
{
"fid": "us-rMzyLYCuiOQ1JMCTxt",
"auth": 3,
"subFields": [],
"typeId": 1
}
],
"numberRule": {
"showType": 2,
"numberType": 1,
"rules": [
{
"formatType": 1,
"zeroFill": 2,
"resetRange": 2,
"dateType": 3,
"content": "123"
}
]
},
"positionChange": true,
"quoteConfig": {
"showFields": [
{
"fid": "123",
"field": "单行文本1"
}
],
"fieldsAuth": [
{
"fid": "123",
"auth": 2
}
],
"matchRules": [],
"fillRules": [
{
"fillFid": "123",
"relatedFid": "345",
"relatedField": "单行文本1",
}
],
"btnText": "选择数据",
"allowCreate": false,
"createBtnText": "新增一条",
"isSource": false
}
}
]
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.tolink.cloud/form/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": 316,
"title": "请假单",
"version": 111,
"desc": "这是一个请假的应用",
"numberFormat": 1,
"attach": [
{
"name": "123",
"url": "123.png"
}
],
"fields": [
[
{
"fid": "us-rMzyLYCuiOQ1JMCTxt",
"type": "input",
"typeId": 30,
"label": "姓名",
"tip": "请输入姓名",
"width": "50%",
"required": true,
"unique": true,
"limitMax": 50,
"defaultType": 2,
"value": {
"value": "张三"
},
"values": [],
"defaultConfig": {
"appId": 91,
"fid": "number",
"typeId": 3,
"matchType": 2,
"matchRules": [
[
{
"fid": "number",
"fieldName": "编号",
"typeId": 1,
"judgeType": 1,
"matchType": 1,
"judgeValue": {
"id": "18",
"value": "116",
"otherInfo": "123.png"
},
"judgeFieldDetail": {
"id": "number",
"value": "编号",
"typeId": 1,
"values": [1]
}
}
]
],
"matchFormula": "CONCAT(SUM(#fid_number$),'\''123'\'')=='\''116123'\''",
"formula": "SUM(#fid_number$)",
"subRelation": [
{
"fid": "123",
"fieldName": "单行文字",
"matchFid": "345",
"matchFieldName": "开发任务名称"
}
],
"aggregation": true,
"aggregationType": 1
},
"ocr": {
"templateId": 9,
"templateName": "印章",
"matchRules": [
{
"ocrField": "扫描原件",
"relatedFid": "123",
"relatedField": "附件上传"
},
{
"ocrField": "识别内容",
"relatedFid": "12345.45678",
"relatedField": "单行文本"
}
]
},
"numberFormat": 1,
"allowDecimal": true,
"decimalDigit": 5,
"minValue": 20,
"maxValue": 50,
"showPercent": true,
"showMoney": true,
"moneyType": 1,
"dateFormat": "1",
"denyOverlap": true,
"supportTel": true,
"codeVerify": true,
"direction": 1,
"chooseType": 1,
"options": [
{
"optId": "sdfwer",
"value": "未命名1",
"useLimit": 100,
"useCount": 5,
"linkFids": [
"us-rMzyLYCuiOQ1JMCTxt"
],
"imageUrl": "https://file.qingflow.com/assets/uploads/a48062c5-42a7-4311-8de6-ba017ba07ad9_28623.png"
}
],
"captureOnly": true,
"fileSize": 80,
"fileType": [
1
],
"imageCompress": true,
"fileNum": 2,
"addressPrecision": 1,
"descValue": "<p>这是描述文字</p>",
"limitWord": true,
"limitFileNum": true,
"limitFileType": true,
"innerFields": [],
"shrink": false,
"addRow": false,
"deleteRow": false,
"subFields": [
{
"fid": "us-rMzyLYCuiOQ1JMCTxt",
"type": "input",
"typeId": 18,
"label": "表格内字段1"
},
{
"fid": "us-rMzyLYCuiOQ1JMCTx3",
"type": "input",
"typeId": 18,
"label": "表格内字段2"
}
],
"subWidth": "20%",
"relationConfig": {
"appId": 91,
"fid": "number",
"matchType": 2,
"matchRules": [
[
{
"fid": "number",
"fieldName": "编号",
"typeId": 1,
"judgeType": 1,
"matchType": 1,
"judgeValue": {
"id": "18",
"value": "116",
"otherInfo": "123.png"
},
"judgeFieldDetail": {
"id": "number",
"value": "编号"
}
}
]
],
"matchFormula": "CONCAT(SUM(#fid_number$),'\''123'\'')=='\''116123'\''",
"formula": "SUM(#fid_number$)"
},
"userRangeType": 1,
"userRange": {
"user": [
{
"id": 18
}
],
"department": [
{
"id": 22
}
],
"role": [
{
"id": 5
}
],
"dynamic": [
{
"fid": "createBy",
"dynamicType": 1
}
],
"includeSubDepartment": true
},
"userDefault": {
"user": [
{
"id": 18
}
],
"department": [
{
"id": 22
}
],
"role": [
{
"id": 5
}
],
"dynamic": [
{
"fid": "createBy",
"dynamicType": 1
}
],
"includeSubDepartment": true
},
"subRelation": [
{
"fid": "123",
"fieldName": "单行文字",
"matchFid": "345",
"matchFieldName": "开发任务名称"
}
],
"btnText": "选择数据",
"referenceFieldAuth": [
{
"fid": "us-rMzyLYCuiOQ1JMCTxt",
"auth": 3,
"subFields": [],
"typeId": 1
}
],
"numberRule": {
"showType": 2,
"numberType": 1,
"rules": [
{
"formatType": 1,
"zeroFill": 2,
"resetRange": 2,
"dateType": 3,
"content": "123"
}
]
},
"positionChange": true,
"quoteConfig": {
"showFields": [
{
"fid": "123",
"field": "单行文本1"
}
],
"fieldsAuth": [
{
"fid": "123",
"auth": 2
}
],
"matchRules": [],
"fillRules": [
{
"fillFid": "123",
"relatedFid": "345",
"relatedField": "单行文本1",
}
],
"btnText": "选择数据",
"allowCreate": false,
"createBtnText": "新增一条",
"isSource": false
}
}
]
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
示例:-
data
object
返回数据
appId
integer
应用id
attach
array [object {2}]
附件数组
desc
string
表单描述
fields
array [array]
字段设置