home / docs / sections

sections: json_api:rowdeleteview

This data as json

id page ref title content breadcrumbs references
json_api:rowdeleteview json_api rowdeleteview Deleting a row To delete a row, make a POST to /<database>/<table>/<row-pks>/-/delete . This requires the delete-row permission. POST /<database>/<table>/<row-pks>/-/delete Content-Type: application/json Authorization: Bearer dstok_<rest-of-token> <row-pks> here is the tilde-encoded primary key value of the row to delete - or a comma-separated list of primary key values if the table has a composite primary key. If successful, this will return a 200 status code and a {"ok": true} response body. Any errors will return {"errors": ["... descriptive message ..."], "ok": false} , and a 400 status code for a bad input or a 403 status code for an authentication or permission error. ["JSON API", "The JSON write API"] []
Powered by Datasette · Queries took 0.715ms