Please help with Nextcloud’s Table App and looking for example.
Here is the schema for a row of data in Nextcloud’s Table App retrieved using api endpoint…
“/index.php/apps/tables/api/1/rows/41”
{
"id": 41,
"tableId": 5,
"createdBy": "XXX",
"createdAt": "2026-01-20 03:03:26",
"lastEditBy": "XXX",
"lastEditAt": "2026-01-20 03:03:26",
"data": [
{
"columnId": 29,
"value": "Testing2"
},
{
"columnId": 30,
"value": "Date Time"
},
{
"columnId": 31,
"value": 7541
}
]
}
I would like to update the value in field (column) 31 using the API. Looking at the Swagger docs. It suggests the code below should work.
data = {"columnId":31, "value": 3333}
tbl_data = {}
tbl_data['data'] = data
url = f"{nextcloud_url}{url_path}"
headers = {
"OCS-APIRequest": "true",
"accept": "application/json"
}
# Make the GET request
response = requests.put(url, headers=headers, auth=(username, password), json=tbl_data)
The variable tbl_data in the above code yields:
{
"data": {
"columnId": 31,
"value": 3333
}
}
Executing the API call returns an error:
InternalError Column with id 0 is not part of table with id 5
I’ve tried every which way to update using API. Can you please look at the code or give an example how to update a record within Tables App? Thank you in advance for your time spent looking at this.