Skip to main content

Update table row

Request

curl -vvv -X PATCH "$API_HOST/open/api/v1/tablenodes/$table_id/rows/$row_id/cells/" -H "Content-Type: application/json" -H "Authorization: $access-token"  -d '$request_body'

Request example

{
"cells": {
"6457589faf1c21691b34dab1":"312e9c2d153a853fb2d530fab21a242x",
"6457589faf1c21691b34dab2":"SunnyCity"
}
}

Parameter description

NameTypeDescriptionRequired
cellsobjectrow cell infoY

Python example

def update_table_row(access_token, table_id, row_id, cells):
url = '%s/open/api/v1/tablenodes/%d/rows/%s/cells/' % (API_HOST, table_id,row_id)
headers = {'Authorization': access_token}
data = {
"cells": cells,
}
req = requests.patch(url, headers=headers, json=data)
return req.json()

Response

NameTypeDescription
detailobjectcreated row info
∟ updateCellsobjectupdated cell info
∟ idstringtable id
∟ rowIDstringrow id

Response example

{
"code": 0,
"detail": {
"id": 18,
"rowID": "6457589faf1c21691b34dab3",
"updateCells": {
"6457589faf1c21691b34dab1": "312e9c2d153a853fb2d530fab21a242x",
"6457589faf1c21691b34dab2": "SunnyCity"
}
},
"extra": null,
"message": "OK",
"requestID": null
}