Delete Rows
DELETE
/api/workbooks/{workbook_id}/rows
const url = 'http://localhost:8000/api/workbooks/example/rows';const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"row_ids":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8000/api/workbooks/example/rows \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "row_ids": [ 1 ] }'Delete rows from a workbook.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workbook_id
required
Workbook Id
string
Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DeleteRowsRequest
Delete rows from a workbook.
object
row_ids
required
Row Ids
Row IDs to delete
Array<integer>
Examplegenerated
{ "row_ids": [ 1 ]}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}