Skip to content

Set one field of several rows to the same value.​

POST
/erupt-api/data/modify/{erupt}/update-cells

Batch editing; only allowed when the model opts in with batchEdit. Every row runs the cell edit pipeline, so validation and DataProxy hooks apply per row, and the whole batch rolls back when any row is rejected.

授权​

tokenHeader

Login token from POST /erupt-api/login, or from /erupt-api/open-api/create-token for server-to-server calls.

类型
API Key (header: token)

参数​

请求头参数

erupt*

Name of the @Erupt class the request is scoped to. Must match the {erupt} path segment, or name the parent erupt when the path addresses a nested erupt (tab, sub-form, reference).

类型
string
必填
格式
"string"

路径参数

erupt*

Simple class name of the @Erupt model

类型
string
必填
格式
"string"

请求体​

application/json
JSON
{
  
"ids": [
  
  
"""",""""
  
],
  
"field": "string",
  
"value": {
  
}
}

响应​

OK

*/*
JSON
{
  
"data": {
  
},
  
"message": "string",
  
"success": true,
  
"status": "SUCCESS",
  
"promptWay": "DIALOG"
}

试验场​

服务器
授权
请求头
变量
键
值
主体

示例​

Released under the Apache-2.0 License.