mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Slight tweak to insert row API design, refs #1851
https://github.com/simonw/datasette/issues/1851#issuecomment-1292997608
This commit is contained in:
parent
6958e21b5c
commit
a51608090b
2 changed files with 7 additions and 7 deletions
|
|
@ -476,7 +476,7 @@ This requires the :ref:`permissions_insert_row` permission.
|
|||
Content-Type: application/json
|
||||
Authorization: Bearer dstok_<rest-of-token>
|
||||
{
|
||||
"row": {
|
||||
"insert": {
|
||||
"column1": "value1",
|
||||
"column2": "value2"
|
||||
}
|
||||
|
|
@ -487,7 +487,7 @@ If successful, this will return a ``201`` status code and the newly inserted row
|
|||
.. code-block:: json
|
||||
|
||||
{
|
||||
"row": {
|
||||
"inserted_row": {
|
||||
"id": 1,
|
||||
"column1": "value1",
|
||||
"column2": "value2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue