Skip to main content

Move table view

Request

curl -vvv -X PATCH "$API_HOST/open/api/v1/tablenodes/$table_id/views/$view_id/move/" -H "Authorization: $access-token"  -d '$request_body'

Request example

{
"prevViewID":"645f37904444eb50dc9d63a8"
}

Parameter description

NameTypeDescriptionRequired
prevViewIDstringprevious view id

Python example

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()

Response

NameTypeDescription
detailobjectview info
∟ orderfloat64order
∟ tableNodeIDint64table id
∟ viewIDstringview id

Response example

{
"code": 0,
"detail": {
"order": 1.75,
"tableNodeID": 73,
"viewID": "645d87141694c57ce7af57c0"
},
"extra": null,
"message": "OK",
"requestID": null
}