移动数据表视图
请求
curl -vvv -X PATCH "$API_HOST/open/api/v1/tablenodes/$table_id/views/$view_id/move/" -H "Authorization: $access-token" -d '$request_body'
请求体
{
"prevViewID":"645f37904444eb50dc9d63a8"
}
参数说明
Name | Type | Description | Required |
---|---|---|---|
prevViewID | string | previous view id |
Python 示例
def move_table_view(access_token, table_id, view_id, previous_view_id):
url = '%s/open/api/v1/tablenodes/%d/views/%s/move/' % (API_HOST, table_id, view_id)
headers = {'Authorization': access_token}
data = {
"prevViewID": previous_view_id,
}
req = requests.patch(url, headers=headers, json=data)
return req.json()
响应
Name | Type | Description |
---|---|---|
detail | object | view info |
∟ order | float64 | order |
∟ tableNodeID | int64 | table id |
∟ viewID | string | view id |
响应示例
{
"code": 0,
"detail": {
"order": 1.75,
"tableNodeID": 73,
"viewID": "645d87141694c57ce7af57c0"
},
"extra": null,
"message": "OK",
"requestID": null
}