I am using API requests in a No Code Environment and have not had success with the Delete Row Operation. I am sure that I use the correct table_name and row_id but the response is always {“deleted_rows”:0}. And using SQL to delete rows is not an option for me.
What am I doing wrong?
Please give more details. Otherwise our answer is only guessing.
Here are the URL, the payload and the response from the API Request. My understanding is that with this URL and the attached payload the row with the row_id from the Payload should be deleted and the Response should be {“deleted_rows”:1}
Request URL: https://cloud.seatable.io/api-gateway/api/v2/dtables/e02b18c4-5d20-4aae-9eed-e99de3aa42d3/rows/
Request Payload: {table_name: “Table1”, row_id: “Mfnids8-TCaUQ5naky4kVw”}
Response: {“deleted_rows”:0}
Hey boettgi,
I can confirm that Delete Row(s) is never deleting a row. I have to check what is wrong with the documentation.
In the meantime I would recommend that you use this endpoint instead: Delete Row
I will keep you updated.
Best regards
Christoph
Hi boettgi,
Sorry for the misleading in the docs which have been already fixed.
One of the items in the payload shoud be row_ids which should pass an array instead of single string
payload = {
"table_name": "Table1",
"row_ids": ["Y-2OLBA7QjK1jaZTYChb-Q"]
}
Please try again!
Best regards,
Ranjiwei
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.