Get a table
开发环境
开发环境
GET
/docs/{docId}/tables/{tableIdOrName}
Tables
请求示例请求示例
Python
Shell
JavaScript
Java
curl --location --request GET 'http://dev-cn.your-api-server.com/docs/AbCDeFGH/tables/grid-pqRst-U'
响应示例响应示例
200 - 示例 1
{
"tableType": "table",
"parent": {
"id": "canvas-IjkLmnO",
"href": "https://coda.io/apis/v1/docs/AbCDeFGH/pages/canvas-IjkLmnO",
"browserLink": "https://coda.io/d/_dAbCDeFGH/Launch-Status_sumnO",
"name": "Launch Status",
"type": "page"
},
"parentTable": {
"tableType": "table",
"parent": {
"id": "canvas-IjkLmnO",
"href": "https://coda.io/apis/v1/docs/AbCDeFGH/pages/canvas-IjkLmnO",
"browserLink": "https://coda.io/d/_dAbCDeFGH/Launch-Status_sumnO",
"name": "Launch Status",
"type": "page"
},
"id": "grid-pqRst-U",
"href": "https://coda.io/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U",
"browserLink": "https://coda.io/d/_dAbCDeFGH/#Teams-and-Tasks_tpqRst-U",
"name": "Tasks",
"type": "table"
},
"displayColumn": {
"id": "c-tuVwxYz",
"href": "https://coda.io/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U/columns/c-tuVwxYz",
"type": "column"
},
"layout": "default",
"id": "grid-pqRst-U",
"href": "https://coda.io/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U",
"browserLink": "https://coda.io/d/_dAbCDeFGH/#Teams-and-Tasks_tpqRst-U",
"name": "Tasks",
"rowCount": 130,
"sorts": [
{
"column": {
"id": "c-tuVwxYz",
"href": "https://coda.io/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U/columns/c-tuVwxYz",
"type": "column"
},
"direction": "ascending"
}
],
"createdAt": "2018-04-11T00:18:57.946Z",
"updatedAt": "2018-04-11T00:18:57.946Z",
"type": "table",
"filter": {
"valid": true,
"isVolatile": false,
"hasUserFormula": false,
"hasTodayFormula": false,
"hasNowFormula": false
}
}
请求参数
Path 参数
docId
string
必需
示例值:
AbCDeFGH
tableIdOrName
string
必需
示例值:
grid-pqRst-U
Query 参数
useUpdatedTableLayouts
boolean
可选
layout
field of detail and form layouts respectively (instead of "masterDetail" for both)返回响应
修改于 2024-03-20 08:13:15