Insert/upsert rows
开发环境
开发环境
POST
/docs/{docId}/tables/{tableIdOrName}/rows
Rows
When upserting, if multiple rows match the specified key column(s), they will all be updated with the specified value.
请求示例请求示例
Python
Shell
JavaScript
Java
curl --location --request POST 'http://dev-cn.your-api-server.com/docs/AbCDeFGH/tables/grid-pqRst-U/rows' \
--header 'Content-Type: application/json' \
--data-raw '{
"rows": [
{
"cells": [
{
"value": "$12.34",
"column": "c-tuVwxYz"
}
]
}
],
"keyColumns": [
"c-bCdeFgh"
]
}'
响应示例响应示例
202 - 示例 1
{
"requestId": "abc-123-def-456",
"addedRowIds": [
"i-bCdeFgh",
"i-CdEfgHi"
]
}
请求参数
Path 参数
docId
string
必需
示例值:
AbCDeFGH
tableIdOrName
string
必需
示例值:
grid-pqRst-U
Query 参数
disableParsing
boolean
可选
示例值:
true
Body 参数application/json
返回响应
修改于 2024-03-20 08:13:15