Closed as not planned
Description
Steps to reproduce
I'm trying to write a row via API to a table. To achieve this I'm using the HTTP request node of n8n. No matter if I'm using the API v1 or v2 I can't successfully execute the command. In the log of Nextcloud I'm getting
[tables] Fehler: An internal error or exception occurred: Column with id 0 is not part of table with id 33
POST /ocs/v2.php/apps/tables/api/2/tables/33/rows
von 188.34.185.95 von demo um 04.01.2025, 21:20:19
This is the body I'm trying to send:
{
"data": {
"columnId": 233,
"value": "Augusto"
}
}
Other commands like GET /index.php/apps/tables/api/1/tables/33/columns
are working and it can be clearly seen that table 33
has a column 233
:
[
{
"id": 233,
"tableId": 33,
"title": "Name",
"createdBy": "demo",
"createdByDisplayName": "demo",
"createdAt": "2025-01-04 00:49:00",
"lastEditBy": "demo",
"lastEditByDisplayName": "demo",
"lastEditAt": "2025-01-04 00:49:00",
"type": "text",
"subtype": "line",
"mandatory": false,
"description": "",
"numberDefault": null,
"numberMin": null,
"numberMax": null,
"numberDecimals": 0,
"numberPrefix": "",
"numberSuffix": "",
"textDefault": "",
"textAllowedPattern": null,
"textMaxLength": null,
"selectionOptions": [],
"selectionDefault": null,
"datetimeDefault": null,
"usergroupDefault": [],
"usergroupMultipleItems": false,
"usergroupSelectUsers": false,
"usergroupSelectGroups": false,
"showUserStatus": false
}
]
The same with GET /index.php/apps/tables/api/1/tables/33/rows
[
{
"id": 3024,
"tableId": 33,
"createdBy": "demo",
"createdAt": "2025-01-04 00:51:53",
"lastEditBy": "demo",
"lastEditAt": "2025-01-04 00:51:53",
"data": [
{
"columnId": 233,
"value": "Paulo"
}
]
}
]
Expected behavior
Write the row.
Actual behavior
No line is written.
Tables app version
0.8.2
Browser
Firefox 133.0.3
Client operating system
Manjaro Linux
Operating system
Ubuntu 22.04
Web server
Apache
PHP engine version
PHP 8.2
Database
MariaDB
Additional info
No response