Slight tweak to insert row API design, refs #1851

https://github.com/simonw/datasette/issues/1851#issuecomment-1292997608
This commit is contained in:
Simon Willison 2022-10-27 12:06:18 -07:00
commit a51608090b
2 changed files with 7 additions and 7 deletions

View file

@ -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"