mirror of
https://github.com/simonw/datasette.git
synced 2026-07-09 09:04:42 +02:00
Row update return:true responds with rows list, matching insert/upsert
Row update previously returned a singular "row" object where insert and upsert return a "rows" list. All write endpoints now use "rows". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
6488b7a30e
commit
b09dceea88
7 changed files with 40 additions and 13 deletions
|
|
@ -1955,11 +1955,13 @@ The returned JSON will look like this:
|
|||
|
||||
{
|
||||
"ok": true,
|
||||
"row": {
|
||||
"id": 1,
|
||||
"title": "New title",
|
||||
"other_column": "Will be present here too"
|
||||
}
|
||||
"rows": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "New title",
|
||||
"other_column": "Will be present here too"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Any errors will use the :ref:`standard error format <json_api_errors>`, with a ``400`` status code for a bad input or a ``403`` status code for an authentication or permission error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue